Skip to content

Instantly share code, notes, and snippets.

@patrickallaert
Created April 13, 2016 07:52
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 patrickallaert/18db667dc0adbd26a0efec7aa6f8b8ec to your computer and use it in GitHub Desktop.
Save patrickallaert/18db667dc0adbd26a0efec7aa6f8b8ec to your computer and use it in GitHub Desktop.
My .gitconfig file ([alias] part)
[alias]
dic = diff --cached
prb = pull --rebase
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
sed = ! git grep -z --full-name -l '.' | xargs -0 sed -ri -e
wdiff = diff --color-words='[A-z0-9_-]+|[^[:space:]]'
hide = update-index --assume-unchanged
unhide = update-index --no-assume-unchanged
hidden = "!git ls-files -v | grep ^h | cut -c 3-"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment