我在Mac OS X上使用git 2.5.4.
我有文件名包含é和git显示它与转义.有没有办法让它使用unicode并显示角色?终端显然可以处理它.
> ls
Sél
> git status
Untracked files:
(use "git add <file>..." to include in what will be committed)
...
"S\303\251l"
Run Code Online (Sandbox Code Playgroud)
我希望该文件显示为Sél,而不是S\303\251l.
在我们托管的一些问题之后,我们决定将我们的Git存储库移动到GitHub.所以我克隆了存储库并尝试将其推送到GitHub.但是,我偶然发现了一些我们以前从未遇到过的错误:
C:\repositories\appName [master]> git push -u origin master
Counting objects: 54483, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (18430/18430), done.
error: object 9eac1e639bbf890f4d1d52e04c32d72d5c29082e:contains duplicate file entries
fatal: Error in object
fatal: sha1 file '<stdout>' write error: Invalid arguments
error: failed to push some refs to 'ssh://git@github.com/User/Project.git'
Run Code Online (Sandbox Code Playgroud)
当我跑fsck:
C:\repositories\appName [master]> git fsck --full
Checking object directories: 100% (256/256), done.
error in tree 0db4b3eb0e0b9e3ee41842229cdc058f01cd9c32: contains duplicate file entries
error in tree 9eac1e639bbf890f4d1d52e04c32d72d5c29082e: contains duplicate file entries …Run Code Online (Sandbox Code Playgroud)