Skip to content

Instantly share code, notes, and snippets.

@cbowns
Created July 23, 2014 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbowns/004646ec691b8532a420 to your computer and use it in GitHub Desktop.
Save cbowns/004646ec691b8532a420 to your computer and use it in GitHub Desktop.
A snippet of .gitconfig
# From my .gitconfig.
# Every time I use these, people get jealous.
[alias]
staged = diff --cached
unstaged = diff
list-staged = diff --staged --name-only
list-unstaged = diff --name-only
addp = add --patch
addi = add --interactive
amend = commit --amend --verbose
amend-reuse = commit --amend -C HEAD --reset-author
ustage = reset HEAD
rollback = checkout --
chainsaw = rebase --interactive
stash-patch = stash show -p
msg = commit --allow-empty
rebase = rebase -v
# These especially:
lol = log --pretty=oneline --abbrev-commit --graph --decorate
lola = log --pretty=oneline --abbrev-commit --graph --decorate --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment