我在网上搜索了很多,但找不到一个确凿的答案。我正在对目录执行以下步骤以将其添加到 git
git add SomeDir/
git commit -m "Some Message"
git diff --name-only HEAD~1
fatal: ambiguous argument 'HEAD~1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
关于我做错了什么的任何想法。谢谢