Skip to content

Instantly share code, notes, and snippets.

@apieum
Last active November 20, 2019 12:48
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 apieum/7135690 to your computer and use it in GitHub Desktop.
Save apieum/7135690 to your computer and use it in GitHub Desktop.
~/.gitconfig
[alias]
co = commit
ca = commit -a
amend = commit --amend
st = status
who = shortlog -sne
oneline = log --pretty=oneline --abbrev-commit --graph
changes = diff --name-status
dic = diff --cached
diffstat = diff --stat
lc = !git oneline ORIG_HEAD.. --stat --no-merges
addm = !git-ls-files -m -z | xargs -0 git-add && git status
addu = !git-ls-files -o --exclude-standard -z | xargs -0 git-add && git status
rmm = !git ls-files -d -z | xargs -0 git-rm && git status
[user]
name = Grégory Salvan
mail = apieum@gmail.com
email = apieum@gmail.com
[core]
editor = vim
excludesfile = ~/.gitignore
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[push]
default = current
[color]
ui = auto
diff = auto
status = auto
branch = auto
interactive = auto
pager = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment