I have been trying to find something like svn info but for Git. Luckily, I stumbled upon Duane Johnson’s script. Here’s git-info.sh:
[gist id=3937631 file=git-info.sh bump=1]
I made an alias in my .profile to make it a bit more accessible:
[gist id=3937631 file=.profile]