Skip to content

Instantly share code, notes, and snippets.

@andrewchilds
Last active July 12, 2016 20:45
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 andrewchilds/2720847 to your computer and use it in GitHub Desktop.
Save andrewchilds/2720847 to your computer and use it in GitHub Desktop.
My Git Config
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
[alias]
st = status
br = branch
co = checkout
l = log --decorate --oneline --graph -n 25
staged = diff --cached
prune = !git remote prune origin
up = !git fetch && git rebase origin/master
rw = reset HEAD~1
wip = !git add . && git commit -m "WIP."
fixup = commit --fixup
fixhead = !git commit --fixup HEAD && git rebase -i HEAD~2
cranekick = commit -a --amend -C HEAD
ignored = !git ls-files -v | grep "^[[:lower:]]"
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
[push]
default = nothing
[rebase]
autosquash = true
[core]
autocrlf = input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment