Skip to content

Instantly share code, notes, and snippets.

@adumont
Last active August 13, 2019 19:16
Show Gist options
  • Save adumont/1380188 to your computer and use it in GitHub Desktop.
Save adumont/1380188 to your computer and use it in GitHub Desktop.
Git Global config (~/.gitconfig)
[color]
ui = auto
[user]
name = Alexandre Dumont
email = adumont@gmail.com
[alias]
st = status
ci = commit
br = branch
ba = branch -a
co = checkout
df = diff
cl = config -l --local
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
fdiff = diff-tree --name-status -r
[color "diff"]
whitespace = red reverse
[core]
# whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[branch]
autosetuprebase = always
# for git version >=1.8 only
#[push]
# default = simple
[merge]
tool = vimdiff
[mergetool]
keepBackup = false
[push]
default = simple
[core]
autocrlf = input
[credential]
helper = cache --timeout=604800
@adumont
Copy link
Author

adumont commented Aug 13, 2019

Install with (it will overwrite any existing file!)

wget https://gist.githubusercontent.com/adumont/1380188/raw/.gitconfig -O ~/.gitconfig

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