For some reason the files I got from remote are causing some problem on my repository. As you can see in changes, it came with a unknown character, and in files I have this bad character I'm able to do nothing, commit, revert, accept mine or the 'others' files.
I already tried reset HARD and re pull, re clone, no success until the moment. I think that it's some encoding problem, but I don't know what and where configure.
Note: My repository is on bitbucket.
Someone can help me ?
What's your OS's default encoding? I thing bitbucket using utf8
to store git stuffs. If your OS in another encoding, say Chinese encoding, you will get this problem. This is a known issue git, msysgit, accents, utf-8, the definitive answers . As far as I know, the latest git-gui
solved this issue. TortoiseGit using msysgit as underlying git messenger, which suffered from file encoding issue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.