Skip to content

Instantly share code, notes, and snippets.

@tygor
Last active August 14, 2019 01:23
Show Gist options
  • Save tygor/f7e3fceaf9efee19706a2d0f781e55db to your computer and use it in GitHub Desktop.
Save tygor/f7e3fceaf9efee19706a2d0f781e55db to your computer and use it in GitHub Desktop.
Just a place to store my git config
# This is Git's per-user configuration file.
[user]
name = {{ YOUR NAME }}
email = {{ YOUR EMAIL }}
[alias]
au = add -u
ca = commit --amend --no-edit
cm = commit -m
co = checkout
f = fetch --all && git rebase origin/master
l1 = log --graph --oneline --decorate --all
lg = log --relative-date --graph --all --pretty=format:'%C(yellow)%h%Creset %C(green)%ad%Creset %C(white)%<(80,trunc)%s%Creset %C(white)- %an%Creset %C(bold yellow)%d%Creset'
lf = log --name-status --all --pretty=format:'%C(yellow)%h%Creset %s %C(green)%ad%Creset %C(cyan)<%ae>%Creset %C(bold yellow)%d%Creset'
n = checkout -b
r = reset HEAD --
ra = reset HEAD
ru = remote update --prune
st = !echo "--- Log ------------------------------------------------------------------------" && echo "" && git lg -20 && echo "" && echo "--- Status ---------------------------------------------------------------------" && echo "" && git status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment