Last active
August 29, 2015 14:18
-
-
Save joshbeckman/1e8fda27851c36ae3c67 to your computer and use it in GitHub Desktop.
My .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
[core] | |
editor = vim | |
[credential] | |
helper = cache | |
[alias] | |
co = checkout | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
st = status | |
s = status -sb | |
ci = commit -am | |
rev = merge --no-ff --no-commit | |
br = branch | |
brs = show-branch --no-name | |
ls = ls-files | |
add = add -v | |
get = fetch --all | |
lsv = log --pretty=format:'%C(yellow)%h %C(cyan)%ad%C(red)%d %C(reset)%s%C(green) [%cn]' --decorate --date=short --numstat | |
# last updated | |
lu = for-each-ref --sort=-committerdate --format='%(committerdate:relative)%09%(refname:short)' refs/heads | |
tree = log --all --graph --decorate --oneline | |
up = push origin | |
pu = pull origin | |
ada = add -A | |
web = instaweb | |
# find by commit message | |
fc = log --all --grep | |
prose = log --pretty=format:%s | |
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now better found at github.com/andjosh/dotfiles