Skip to content

Instantly share code, notes, and snippets.

@MattSkala
Created October 18, 2014 10:36
Show Gist options
  • Save MattSkala/a8e2e030a304b710a00d to your computer and use it in GitHub Desktop.
Save MattSkala/a8e2e030a304b710a00d to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Matouš Skála
email = skala.matous@gmail.com
[core]
# windows->true, linux->input
autocrlf = input
safecrlf = false
excludesfile = /Users/skala/.gitignore_global
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%C(yellow)%h %Cred%ad%Cgreen%d %Creset%s %Cblue[%an]\" --graph --date=short --date=relative
type = cat-file -t
dump = cat-file -p
# graph for current branch
l = log --graph --decorate --pretty=oneline --abbrev-commit
# graph for all branches
ll = log --graph --decorate --pretty=oneline --abbrev-commit --all
spl = !git stash && git pull --rebase && git stash pop
[credential]
helper = osxkeychain
[http]
sslVerify = false
[remote "origin"]
# git push -> push current HEAD into tracked remote branch
push = HEAD
[diff]
mnemonicprefix = true
[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 = green
changed = yellow
untracked = cyan
[log]
decorate = full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment