Skip to content

Instantly share code, notes, and snippets.

@nicmart
Created January 25, 2013 14:57
Show Gist options
  • Save nicmart/4635028 to your computer and use it in GitHub Desktop.
Save nicmart/4635028 to your computer and use it in GitHub Desktop.
[user]
name = Nicolò Martini
email = [email protected]
[github]
user = nicmart
token = xxxx
[core]
excludesfile = /Users/nic/.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
[alias]
last = log -1 HEAD
cam = commit -a -m
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
lg = !"git lg1"
[color]
ui = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment