Created
September 16, 2012 11:14
-
-
Save shiftkey/3732023 to your computer and use it in GitHub Desktop.
Sample .gitconfig with aliases for fun and profit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
st = status | |
co = checkout | |
ci = commit | |
br = branch | |
df = diff | |
lp = log -p | |
com = checkout master | |
fe = fetch origin | |
hr = reset origin/master --hard | |
me = config user.name | |
bn = !git for-each-ref --format='%(refname:short)' refs/heads/master | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
today = !git all --since='12am' --committer=\"`git me`\" | |
today-all = !git all --since='12am' | |
sync = !git update && git co master && git pull && git co @{-1} | |
resync = !sh -c 'BRANCH_NAME=master && git com && git fe && git hr && git rebase master ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment