You must have a file in your repository named HEAD , and this confuses git , because HEAD also the usual name for the active active branch.
You can use a double dash to disambiguate, for example:
git log -- HEAD
This will show a history of a file called HEAD .
It may be prudent to avoid having files with these special names in order to avoid these problems.
source share