GitKraken file encoding
Asked Answered
N

1

9

I use Visual Studio to develop my code. My files are encoded in UTF-8 with BOM.
As VS doesn't allow to stage hunk a files, I use GitKraken to do so.
But when I stage a hunk a file with GitKraken, the encoding of the file change from UTF-8 with BOM to Western European (Windows).
How to avoid GitKraken to change my file encoding?

Newman answered 22/1, 2019 at 11:0 Comment(3)
Would love to know as well. About to rule out GitKraken company wide due to this perplexing behaviorTibbetts
This is still going on. Support said it was a known issue back in April 2020. Not fixed as of v7.3.2Quickwitted
Upvote this issue here: feedback.gitkraken.com/suggestions/192991/…Kinshasa
A
1

Try to change the value in Setting -> Repo-Specific Preferences -> Encoding -> Default encoding for each repository to UTF-8 BOM. It helped me at least with the auto-solving of merge conflicts

Abelabelard answered 6/6, 2024 at 9:39 Comment(1)
I am glad GitKraken finally allows to set the file encoding.Newman

© 2022 - 2025 — McMap. All rights reserved.