[git] add alias to get current branch name

This is useful for scripting
This commit is contained in:
Nick Nisi
2014-04-08 16:41:11 -05:00
parent 10bfebc852
commit 35c0602358

View File

@@ -33,6 +33,8 @@
# show what I did today
day = "!sh -c 'git log --reverse --no-merges --branches=* --date=local --after=\"yesterday 11:59PM\" --author=\"`git config --get user.name`\"'"
churn = "!f() { git log --all -M -C --name-only --format='format:' \"$@\" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print \"count\tfile\"} {print $1 \"\t\" $2}' | sort -g; }; f"
# current branch
cbr = rev-parse --abbrev-ref HEAD
# assume aliases
assume = update-index --assume-unchanged