What command can I use to print out the commit id of HEAD?
This is what I\'m doing by hand:
$ cat .git/HEAD ref: refs/heads/v3.3 $ cat .git/refs/head
Old thread, still for future reference...:) even following works
git show-ref --head
by default HEAD is filtered out. Be careful about following though ; plural "heads" with a 's' at the end. The following command shows branches under "refs/heads"
git show-ref --heads