Created
July 23, 2014 17:54
-
-
Save cbowns/004646ec691b8532a420 to your computer and use it in GitHub Desktop.
A snippet of .gitconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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