1
Git的状态给了我这样的:Git的状态显示了一个奇怪的字符串作为未跟踪文件
$ git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
"\357\200\233\357\200\233OB\357\200\233q"
nothing added to commit but untracked files present (use "git add" to track)
没有这样的文件或目录:
$ cat $"\357\200\233\357\200\233OB\357\200\233q"
cat: '\357\200\233\357\200\233OB\357\200\233q': No such file or directory
另一个奇怪的是,之前的状态命令最后一次提交没有显示这个奇怪的路径字符串。
任何想法是怎么回事?我应该“git clean -f”?它安全吗?
我在windows上,没有sudo。 rm -rf“\ 357 \ 200 \ 233 \ 357 \ 200 \ 233OB \ 357 \ 200 \ 233q”没有完成这项工作。我做的是git clean -f,它工作。我想知道那里发生了什么。什么脚本/命令做到了这一点,为什么它不能检测为文件夹/文件。 – pHbits
回答更新,&是它的酷,因为该文件必须使用系统创建&必须隐藏,使用'git clean -f'清除该文件并在内部调用'git checkout branchname -f' – LuFFy
感谢您的信息Luffy 。 – pHbits