我試圖修復git
的問題。「git show HEAD」結果爲「fatal:ambiguous'HEAD':unknown revision or path not in the working tree」
當我輸入git show HEAD
時,出現錯誤fatal : ambiguous 'HEAD': unknown revision or path not in the working tree
。
我能做些什麼來解決這個問題?
的git status
顯示的是:
git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: script.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
script.txt~
'git status'的輸出是什麼? – Jakuje