Skip to content

Instantly share code, notes, and snippets.

@joshbeckman
Last active August 29, 2015 14:18
Show Gist options
  • Save joshbeckman/1e8fda27851c36ae3c67 to your computer and use it in GitHub Desktop.
Save joshbeckman/1e8fda27851c36ae3c67 to your computer and use it in GitHub Desktop.
My .gitconfig
[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
@joshbeckman
Copy link
Author

Now better found at github.com/andjosh/dotfiles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment