Skip to content

Instantly share code, notes, and snippets.

@premkash
Forked from ronaldsuwandi/.gitconfig
Created August 22, 2016 17:17
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 premkash/d18b1e7ba708b71efcb8405751c9b116 to your computer and use it in GitHub Desktop.
Save premkash/d18b1e7ba708b71efcb8405751c9b116 to your computer and use it in GitHub Desktop.
My personal gitconfig
[user]
name = Ronald Suwandi
email = ronald@ronaldsuwandi.com
[core]
excludesfile = /Users/ronald/.gitignore_global
# editor = subl -nw
editor = vim
[diff]
tool = sublimerge
[difftool]
prompt = false
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[difftool "sublimerge"]
cmd = subl -nw \"$REMOTE\" \"$LOCAL\" --command \"sublimerge_diff_views {\\\"left_read_only\\\": true, \\\"right_read_only\\\": true}\"
[merge]
tool = sublimerge
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[mergetool "sublimerge"]
cmd = subl -nw \"$REMOTE\" \"$BASE\" \"$LOCAL\" \"$MERGED\" --command \"sublimerge_diff_views\"
trustExitCode = false
[color]
ui = true
[alias]
co = checkout
st = status
tree = log --graph --decorate=short --branches --date=relative --abbrev-commit --shortstat --remotes=origin --source
tr = log --graph --decorate=short --branches --date=relative --abbrev-commit --shortstat --remotes=origin --source
trst = log --graph --decorate=short --branches --date=relative --abbrev-commit --stat --remotes=origin --source
dt = difftool
mt = mergetool
[push]
# push the current branch to a branch of the same name
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment