Skip to content

Instantly share code, notes, and snippets.

@hjhjw1991
Created April 24, 2020 04:17
Show Gist options
  • Save hjhjw1991/b87d3b5f2bc591eb1533d29fffaed523 to your computer and use it in GitHub Desktop.
Save hjhjw1991/b87d3b5f2bc591eb1533d29fffaed523 to your computer and use it in GitHub Desktop.
[user]
name = ${username}
email = ${email}
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[alias]
co = checkout
ci = commit
st = status
br = branch
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[core]
excludesfile = /Users/${username}/.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment