Skip to content

Instantly share code, notes, and snippets.

@pyk
Last active December 27, 2015 10:39
Show Gist options
  • Save pyk/7312113 to your computer and use it in GitHub Desktop.
Save pyk/7312113 to your computer and use it in GitHub Desktop.
my git configuration file - allways write nice look git commit using sublime text - bunch of usefull git aliases
[core]
excludesfile = /path/to/global/.gitignore
quotepath = false
editor = sublime -w
[user]
name = [your name]
email = [your email]
[mergetool]
keepBackup = true
[alias]
cm = commit -m
co = checkout
st = status
praise = blame
dt = difftool
addall = add .
l = log --graph --abbrev-commit --decorate --date=relative --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
history = 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
[apply]
whitespace = nowarn
[diff]
color = auto
rename = copy
[pager]
color = true
[status]
color = true
[difftool]
prompt = false
[advice]
statusHints = false
[credential]
helper = cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment