1
如果git status
顯示:Git顯示刪除了一個文件夾,但git結賬<folder_name>無法恢復?
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: FooBar.xcodeproj/project.pbxproj
是不是應該git checkout
要拿回來?
$ git checkout FooBar.xcodeproj
error: pathspec 'FooBar.xcodeproj' did not match any file(s) known to git.
git如何正確恢復此文件夾?
嘗試什麼要求你'(使用「git的重置頭 ...」來unstage)' –
有問題的文件名是'FooBar.xcodeproj/project.pbxproj',而不僅僅是'FooBar.xcodeproj'。 –