Skip to content

Instantly share code, notes, and snippets.

@bench
Created May 23, 2018 09:19
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 bench/74b1f2c2add718a95fc2d914b6476eb2 to your computer and use it in GitHub Desktop.
Save bench/74b1f2c2add718a95fc2d914b6476eb2 to your computer and use it in GitHub Desktop.
My gitconfig file
[user]
name = Benjamin Chenebault
email = benjamin.chenebault@gmail.com
[push]
default = simple
[alias]
cp = cherry-pick
st = status -s
cl = clone
ci = commit
co = checkout
br = branch -vv
diff = diff --word-diff
dc = diff --cached
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
filelog = log -u
alias = "!git config -l | grep alias | cut -c 7-"
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
[core]
editor = vim
[merge]
tool = p4merge
[pull]
rebase = true
[rerere]
enabled = true
[http]
cookiefile = /home/bchenebault/.gitcookies
[status]
showUntrackedFiles = all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment