[git] add alias to get current branch name
This is useful for scripting
This commit is contained in:
@@ -33,6 +33,8 @@
|
|||||||
# show what I did today
|
# 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`\"'"
|
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"
|
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 aliases
|
||||||
assume = update-index --assume-unchanged
|
assume = update-index --assume-unchanged
|
||||||
|
|||||||
Reference in New Issue
Block a user