Skip to content

Instantly share code, notes, and snippets.

@akuhn
Created July 12, 2015 19:57
Show Gist options
  • Save akuhn/a5d2945642fb0e068d2e to your computer and use it in GitHub Desktop.
Save akuhn/a5d2945642fb0e068d2e to your computer and use it in GitHub Desktop.
[alias]
d = "!cd ${GIT_PREFIX:-.} && git diff && [[ -z \"$(git diff)\" ]] && git diff --staged && [[ -z \"$(git diff --staged)\" ]] && git log -p master.."
l = "!cd ${GIT_PREFIX:-.} && if [[ -z \"$(git diff --name-only && git diff --name-only --staged)\" ]]; then git log --stat master..; else git status; fi"
book = bookmark
drop = stash save 'dropping local changes'
touch = "!GIT_COMMITTER_DATE=\"`date`\" git commit --amend --date \"`date`\""
wip = stash save 'work in progress'
[color]
ui = auto
[core]
editor = /usr/bin/vim
excludesfile = ~/.gitignore_global
[push]
default = current
[rerere]
enabled = 1
[color "diff"]
frag = yellow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment