Skip to content

Instantly share code, notes, and snippets.

@ninjachen
Created May 22, 2020 08:50
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 ninjachen/9e6b6b20cafb9db44bb13067d4ce10df to your computer and use it in GitHub Desktop.
Save ninjachen/9e6b6b20cafb9db44bb13067d4ce10df to your computer and use it in GitHub Desktop.
put this file under ~/.gitconfig
[alias]
co = checkout
br = branch
ci = commit
st = status -uno
mylog = !git log --author=\"$(git config user.name)\"
viewchanges= diff -v --stat --cached origin/master
[user]
name = Jiachen Ning
email = jiachenning@gmail.com
[core]
excludesfile = /Users/ninja/.gitignore_global
autocrlf = input
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment