我尝试使用命令行合并Xcode中的一个项目,但我认为需要删除一个文件。它是一个存在于我要合并的分支中的文件,但不是我要合并到的分支中的文件。问题是它的名称中有一个空格:
TestService/TestService copy-Info.plist
如何删除该文件?谢谢!
发布于 2012-08-08 07:29:38
您可以引用文件名:
git rm "TestService/TestService copy-Info.plist"
或者转义空格:
git rm TestService/TestService\ copy-Info.plist
发布于 2012-11-07 17:05:32
如果你有时使用Ubuntu,你需要使用git rm --cached -r "TestService/TestService copy-Info.plist"
发布于 2012-08-08 07:29:24
你有没有试过在文件名上加引号?"TestService/TestService copy-Info.plist"
我不是100%确定它是如何工作的。
https://stackoverflow.com/questions/11855517
复制相似问题