Skip to content

Instantly share code, notes, and snippets.

@calevano
Created April 25, 2017 15:07
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 calevano/abd9b42a3359e27fe18b89d53c3ea26b to your computer and use it in GitHub Desktop.
Save calevano/abd9b42a3359e27fe18b89d53c3ea26b to your computer and use it in GitHub Desktop.
configure git
[user]
name = Carlos Levano
email = calevano@gmail.com
[core]
editor = vim
excludesfile = ~/.gitignore_global
autocrlf = false
[alias]
a = add
br = branch
ci = commit -m
co = checkout
st = status -sb
ll = log --pretty=oneline --abbrev-commit --max-count=15
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
unstage = reset HEAD
uncommit = reset --soft HEAD^
[color]
diff = auto
status = auto
branch = auto
[github]
user = julionc
[push]
default = simple
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[format]
pretty = format:%C(blue)%ad%Creset %C(yellow)%h%C(green)%d%Creset %C(blue)%s %C(magenta) [%an]%Creset
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[help]
autocorrect = 1
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment