Skip to content

Instantly share code, notes, and snippets.

@akshaymohite
Created July 13, 2017 06:22
Show Gist options
  • Save akshaymohite/f359b0af195d2611bae6fb9ef158553b to your computer and use it in GitHub Desktop.
Save akshaymohite/f359b0af195d2611bae6fb9ef158553b to your computer and use it in GitHub Desktop.
gitconfig
[alias]
st = status
di = diff
co = checkout
ci = commit
br = branch
sta = stash
llog = log --date=local
flog = log --pretty=fuller --decorate
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lol = log --graph --decorate --oneline
lola = log --graph --decorate --oneline --all
blog = log origin/master... --left-right
ds = diff --staged
fixup = commit --fixup
squash = commit --squash
unstage = reset HEAD
rum = rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment