Joined March 2012
·
Posted to
Git: See current branch name in terminal prompt
over 1 year
ago
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
23,699 Total ProTip Views

Charity
Fork and commit to someone's open source project in need

Opabinia
Started social coding on GitHub within 6 months of its first signs of life

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Forked
Have a project valued enough to be forked by someone else

Bear 3
Have at least three original repos where Objective-C is the dominant language

T-Rex 3
Have at least three original repos where C is the dominant language

T-Rex
Have at least one original repo where C is the dominant language

Mongoose
Have at least one original repo where Ruby is the dominant language

Bear
Have at least one original repo where Objective-C is the dominant language
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.