Skip to content

Instantly share code, notes, and snippets.

@chl03ks
Last active December 26, 2017 19:12
Show Gist options
  • Save chl03ks/703ebd103bbd182f4700 to your computer and use it in GitHub Desktop.
Save chl03ks/703ebd103bbd182f4700 to your computer and use it in GitHub Desktop.
My git configuration
[user]
name = Daniel
email = danielulisesverdin@gmail.com
[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