Monday, May 6, 2013

My git .gitconfig customization

My .gitconfig has a couple nice alias's that i have found extremely helpful. I've found a couple around the internet as well and i think they are useful.

[user]
name = Craig Vyvial
email = cp16net@gmail.com
[color]
ui = true
branch = auto
diff = auto
interactive = auto
status = auto
# common alias
[alias]
s = status -s -b -uno
st = status
br = branch
ba = branch -a -v -v
co = checkout
# exotic alias
[alias]
# when was this file last updated, on each local branch
wwflu = "!f() { for b in $(git rev-parse --symbolic --branches); do echo -e `git log --format=%at:%ar -1 $b -- \"$1\"`\\\\t$b; done | sort -r |cut -f2 -d: ; }; f"
view raw .gitconfig hosted with ❤ by GitHub

No comments:

Post a Comment