3 ms·
git branch gives you a nice asterisk too: $git branch * MyBranch NotMyBranch It prints the branch as the first line of git status: $git statu
by fr0sty 14y ago
git branch gives you a nice asterisk too:
$git branch
* MyBranch
NotMyBranch
It prints the branch as the first line of git status:
$git status
# On branch Foo
...
It also ships with a 'bash-competion' file which gives you a very simple way to disply the current branch (among other things) rather simply.
And of course you can also create your own alias if it is something you wish to do often.