Skip to content

Instantly share code, notes, and snippets.

@kouinkouin
Created November 11, 2015 18:22
Show Gist options
  • Save kouinkouin/0ef55d14ac1cd7f43364 to your computer and use it in GitHub Desktop.
Save kouinkouin/0ef55d14ac1cd7f43364 to your computer and use it in GitHub Desktop.
.gitconfig file (without user section)
[color]
ui = auto
[color "status"]
added = green
changed = yellow
untracked = red
[alias]
st = status
ci = commit
co = checkout
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cred(%Cgreen%an %cr%Cred)%Creset'
lgd = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cred(%Cgreen%an%Cred - %Cgreen%ai%Cred / %Cgreen%cn%Cred - %Cgreen%ci%Cred)%Creset' --date-order
lge = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cred(%Cgreen%an%Cred: %Cgreen%ae%Cred - %Cgreen%ai%Cred)%Creset'
cine = commit --no-edit
cinema = commit --no-edit --amend
merne = merge --no-edit
[core]
pager = cat
[diff]
mnemonicPrefix = true
wordRegex = .
color = true
[grep]
extendedRegexp = true
[log]
abbrevCommit = true
[merge]
conflictStyle = diff3
tool = meld
ff = false
[mergetool]
keepBackup = false
keepTemporaries = false
prompt = false
[pull]
rebase = preserve
[push]
default = current
[rerere]
enabled = true
[rebase]
autostash = true
autosquash = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment