Skip to content

Instantly share code, notes, and snippets.

@touren
Last active January 9, 2020 16:18
Show Gist options
  • Save touren/4075b2af4716fd963124ef9fb11c292a to your computer and use it in GitHub Desktop.
Save touren/4075b2af4716fd963124ef9fb11c292a to your computer and use it in GitHub Desktop.
config file of git
[gui]
[user]
email = [email protected]
name = Tao Ren
[merge]
summary = true
[alias]
co = checkout
br = branch
ci = commit
st = status -uno
last = log -1 --stat HEAD
gh = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[2m-(%ar)"
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
dt = difftool --no-prompt
[diff]
tool = diffmerge
[difftool "diffmerge"]
cmd = diffmerge \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[push]
default = upstream
[core]
quotepath = false
autocrlf = input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment