I've run into 2 different ways for git to tell me the current branch:
git rev-parse --abbrev-ref HEAD
and
git symbolic-ref --short HEAD
Ehh.. what do both do exactly and when would they differ, if at all?
I've run into 2 different ways for git to tell me the current branch:
git rev-parse --abbrev-ref HEAD
and
git symbolic-ref --short HEAD
Ehh.. what do both do exactly and when would they differ, if at all?