Created
November 2, 2017 15:26
-
-
Save singleseeker/0fbcd15e4514c87566ea69e1c8a68b33 to your computer and use it in GitHub Desktop.
git-alias
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) %Cblue<%an>%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