Skip to content

Instantly share code, notes, and snippets.

@garukun
Created February 20, 2016 06:11
Show Gist options
  • Save garukun/c11ddf5f41748f82a57f to your computer and use it in GitHub Desktop.
Save garukun/c11ddf5f41748f82a57f to your computer and use it in GitHub Desktop.
Useful Git config
[alias]
ci = commit
cm = commit -am "squash!"
co = checkout
b = branch
cob = checkout -b
s = status
dg = difftool -t intellij -d
tree = log --graph --decorate --oneline
[color]
ui = true
diff = auto
branch = auto
interactive = auto
[diff]
tool = intellij
[difftool "intellij"]
cmd = "/Applications/IntelliJ\\ IDEA\\ 15\\ EAP.app/Contents/MacOS/idea" diff \"$LOCAL\" \"$REMOTE\"
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[url "git@github.com:"]
insteadOf = https://github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment