Skip to content

Instantly share code, notes, and snippets.

@alvarogarcia7
Created February 26, 2015 07:10
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 alvarogarcia7/922699ca34fed9d30052 to your computer and use it in GitHub Desktop.
Save alvarogarcia7/922699ca34fed9d30052 to your computer and use it in GitHub Desktop.
my git CLI settings as of 20150226-0807
# [...]
# only the part part of it that relates to git
alias g=git
# [...]
[core]
excludesfile = /Users/alvaro/.gitignore_global
[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
[user]
name = $MY_NAME
email = $EMAIL_1
email = $EMAIL_2
[alias]
c = commit -m
cc = commit --all -m
#mostly used for TDD, green phase
cg = commit -m "green"
#mostly used for TDD, green phase
ccg = commit --all -m "green"
cam = commit --amend -m
s = status
aa = add --all
a = add
g = log --pretty --graph --oneline
l = log -n1
d = diff
dl = diff HEAD^1
#problem: adds two times the parameter
# i = !echo "$@" >> .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment