Skip to content

Instantly share code, notes, and snippets.

@kowito
Created September 12, 2018 10:19
Show Gist options
  • Save kowito/a56e1b44190770bd98830e485884f361 to your computer and use it in GitHub Desktop.
Save kowito/a56e1b44190770bd98830e485884f361 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Kowito
email = hi@kowito.com
[core]
excludesfile = ~/.gitignore
autocrlf = input
editor = vim
excludesfile = /Users/kowito/.gitignore_global
[color]
ui = auto
interactive = auto
[alias]
st = status
ci = commit
co = checkout
staged = "diff --cached"
oneline = "log --pretty=oneline"
llog = log --date=local
changes = diff --name-status -r
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
log-graph = log --all --graph --decorate
log-refs = log --all --graph --decorate --oneline --simplify-by-decoration --no-merges
log-timeline = log --format='%h %an %ar - %s'
log-local = log --oneline origin..HEAD
log-fetched = log --oneline HEAD..origin/master
[push]
default = simple
[include]
path = ~/.gitconfig.local
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[commit]
template = /Users/kowito/.stCommitMsg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment