我试图修复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