Joined March 2012
·

cSquirrel

E14, London, UK
·
·
·

You may want to check the _gitps1 bash function distributed with git

AFAIK it is not part of every git distribution and as such is not available on every system.
This snippet does work on every git system.

Why not just use git branch -v ?
... to get the current branch name?

Can't see a big improvement using it.
This or other way you have to process the output to extract branch name.

Posted to Git: Temporarily ignoring files over 1 year ago

@juanfernandes: That's bizzare because these are git alias definitions. They shouldn't be processed by shell (.bashrc) but by git itself (.gitconfig).

Achievements
385 Karma
22,953 Total ProTip Views
Interests & Skills