$ 0 0 how to get git branch & commit names. $ git name-rev –name-only HEAD master $ git log –pretty=format:’%h’ -n 1 7709acd