Skip to content

Instantly share code, notes, and snippets.

@cbowns cbowns/.gitconfig
Created Jul 23, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.