我有一些使用 us-ascii
编码的文件已提交到存储库。当我将编码更改为 utf-8
时,我无法提交,因为我得到:
$ git status
# On branch master
nothing to commit (working directory clean)
如何提交此类更改?
最佳答案
来自@reactormonk 的 6 年前的评论对我有用。我在文件中放了一条评论,其中评论有一个 UTF-8 字符。提交该更改,将文件编码设置为 UTF-8。
关于git - 提交编码更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16664255/