For most of the commands (like git log, git diff etc) we have to provide commit id as
argument. But remembering commit id is very difficult, even 7 characters also.
Git provides some sample names for these commit ids. We can use these names directly.
These are just pointers to commit ids. These sample names are called references or refs.
References are stored in .git/refs directory as text files.
There are multiple types of references like heads,tags and remotes.
Eg:
$pwd
/d/gitprojects/project6/.git/refs/heads
$ cat master
49aa8d79a9bab4c0d72dec217c0c6d5d96d604ce
Most of the times, we have to use the most recent commit id.
For such type of most commonly used commit ids git provides default references