當我運行其新的命令stash -p -- {pathspec}
作爲的Git PathSpec問題
git stash -p -- AB.Dir1/Dir2/DestinationHierarchyCreator.cs
它報告錯誤的新版本2.13.0.windows.1
error: pathspec 'AB.Dir1/Dir2/DestinationHierarchyCreator.cs' did not match any file(s) known to git.
然而,當我做git status
,其中我從實際上覆制文件,它報告
Your branch is up-to-date with 'origin/project/develop'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: AB.Dir1/Dir2/DestinationHierarchyCreator.cs
如果我轉到目錄中的文件所在的位置並執行git stash -p -- DestinationHierarchyCreator.cs
它會失敗,並顯示相同的錯誤。
如果我運行命令git stash -p -- *.cs
那麼我可以將碎片保存到存儲器中。
所以是我git stash -p
選項的理解錯了,或者是我的pathspec的處理不正確的個人文件(S)或其他什麼東西?
奇怪。我在https://github.com/git-for-windows/git/issues?utf8=%E2%9C%93&q=stash%20is%3Aissue%20或http:// marc上看不到任何問題。 info /?l = git&w = 4&r = 1&s = stash + match&q = b – VonC
@VonC我認爲這是一個用戶錯誤,在發現git錯誤之前。 – OmegaMan