My git version is 1.8.0 mysysgit0.
Remote repo on -linux server.
Local repo - Windows 7.
When I try to commit my local changes it says fatal error below:
fatal ambiguous argument 'HEAD' both revision and file name use -- to separate paths from revision like git [....]--[...]
Could any one suggest what is the problem? What is the fix?
You must have file in your repository called HEAD, and this is confusing git because HEAD is also customary name for currently active branch.
You can use double-dash to remove ambiguity, like this:
git log -- HEAD
This will show history about file named HEAD.
It is probably wise to avoid having files with these special names to avoid these issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With