# tells you name of current branch git rev-parse --abbrev-ref HEAD # tells you hash of last commit git rev-parse HEAD