Skip to content

Instantly share code, notes, and snippets.

@leplatrem
Created November 19, 2014 13:51
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 leplatrem/9c88e3eb8b879f8ec21b to your computer and use it in GitHub Desktop.
Save leplatrem/9c88e3eb8b879f8ec21b to your computer and use it in GitHub Desktop.
Git config (exemple)
[user]
name = Your Name\n
email = you@email.com
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "diff"]
whitespace = red reverse
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
pr = pull --rebase
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
logf = log --follow
[url "ssh://user@server.net/var/git/"]
insteadOf = s1:
[core]
editor = vi
excludesfile = /home/mathieu/.gitignore
[diff]
tool = meld
[format]
pretty = oneline
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment