Last active
December 26, 2017 19:12
-
-
Save chl03ks/703ebd103bbd182f4700 to your computer and use it in GitHub Desktop.
My git configuration
This file contains hidden or 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
[user] | |
name = Daniel | |
email = [email protected] | |
[color] | |
ui = true | |
[alias] | |
co = checkout | |
dev = pull origin develop | |
mast = pull origin master | |
todev = push origin develop | |
tomast = push origin master | |
all = add . | |
cm = commit | |
cmm = commit -m | |
tohead = push origin HEAD | |
history = log --graph --oneline --decorate | |
st = status | |
unstage = reset HEAD -- cob = checkout -b | |
# list branches sorted by last modified | |
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'" | |
# list aliases | |
la = "!git config -l | grep alias | cut -c 7-" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment