Git: HEAD against the head

All the documentation I can find relates to HEAD , and I have heard many times that it is case sensitive. Yes, I can do things like

 git log head...merge_head 

and works just like

 git log head...merge_head 

Is this due to some setting in my local setting that I don’t know about, or is it just an undocumented function (perhaps to discourage such a practice)?

+7
git
source share
1 answer

Case sensitivity is case-sensitive, HEAD is case sensitive on Linux, not case sensitive on Windows (e.g. msysgit). Both can be like on OSX depending on the configuration of the file system (by default, HFS + is not case sensitive, but when formatting you can also set it to case sensitivity). For example, on Linux, I get:

 git log head fatal: ambiguous argument 'head': unknown revision or path not in the working tree. 

So far, git log HEAD working fine.

+10
source share

All Articles