Skip to content

Instantly share code, notes, and snippets.

@edwinestrada
Last active January 23, 2016 01:52
Show Gist options
  • Save edwinestrada/0adaaa695ab22cb7e845 to your computer and use it in GitHub Desktop.
Save edwinestrada/0adaaa695ab22cb7e845 to your computer and use it in GitHub Desktop.
Edwin's .gitconfig
[core]
excludesfile = /Users/edwin/.gitignore_global
editor = vim
[alias]
d = diff
ha = log --all --format='%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset' --graph --date=short
hs = log --all --format='%s%C(red)%d%Creset' --graph --date=short
rmrepair = status --porcelain | awk '/^.D .*$/ {print $2}' | xargs git rm
last = log --name-status HEAD^..HEAD
a = add .
ap = add -p
cv = commit --verbose
cm = commit -m
s = status
co = checkout
cob = checkout -b
[user]
name = Edwin Estrada
email = [email protected]
[push]
default = matching
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[core]
excludesfile = /Users/edwin/.gitignore_global
editor = vim
[alias]
h = log --format='%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset' --graph --date=short
ha = log --all --format='%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset' --graph --date=short
has = log --all --format='%s%C(red)%d%Creset' --graph --date=short
rmrepair = status --porcelain | awk '/^.D .*$/ {print $2}' | xargs git rm
last = log --name-status HEAD^..HEAD
a = add .
cm = commit -m
s = status
[user]
name = Edwin Estrada
email = [email protected]
[push]
default = matching
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment