Skip to content

Instantly share code, notes, and snippets.

@berngp
Created March 30, 2014 05:27
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save berngp/9868043 to your computer and use it in GitHub Desktop.
Save berngp/9868043 to your computer and use it in GitHub Desktop.
dot.gitconfig
[user]
name = Your Name
email = your.name@mail.com
[color]
ui = true
[core]
excludesfile = ~/.gitignore_global
editor = /usr/local/bin/mvim -f
[mergetool "p4merge"]
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
keepTemporaries = false
trustExitCode = false
keepBackup = false
[diff]
tool = opendiff
#external = p4diff
#external = meldDiff
[github.com]
user = github-username
token = your-token
[java.net]
user = username
[color]
diff = auto
branch = auto
status = auto
[http]
sslVerify = false
[alias]
st = status
d = diff --color-words
dw = diff --word-diff
ci = commit -v
cia = commit -v -a
ca = commit -a -m
co = checkout -b
cp = cherry-pick
l = log
ll = log -p
lod = log --oneline --decorate
lgraph = log --oneline --decorate --graph
b = branch
pom = push origin master
pullit = pull --rebase
ads = submodule add
rem = remote add origin
headless = !sh -c 'git symbolic-ref HEAD refs/heads/$0 && rm .git/index && git clean -fdx'
unstash = stash branch
[git-tmbundle]
gitx-path = /Applications/GitX.app
[push]
default = simple
[commit]
template = /Users/youuser/.gitmessage.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment