Skip to content

Instantly share code, notes, and snippets.

@skyrpex
Forked from berngp/.gitconfig
Created April 15, 2016 07:42
Show Gist options
  • Save skyrpex/fa6177e94b2d58459e521f14a8dd0cc7 to your computer and use it in GitHub Desktop.
Save skyrpex/fa6177e94b2d58459e521f14a8dd0cc7 to your computer and use it in GitHub Desktop.
dot.gitconfig
[user]
name = Your Name
email = [email protected]
[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