Skip to content

Instantly share code, notes, and snippets.

@wenchy
Created February 20, 2019 01:14
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 wenchy/2d7381b2f93600895e080a036fc1084a to your computer and use it in GitHub Desktop.
Save wenchy/2d7381b2f93600895e080a036fc1084a to your computer and use it in GitHub Desktop.
[user]
name = yourname
email = yourname@xxx.com
[push]
default = simple
[diff]
tool = vimdiff
[difftool]
prompt = false
[credential]
helper = store
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "status"]
added = green
changed = red bold
untracked = magenta bold
[color "branch"]
remote = yellow
[merge]
tool = vimdiff
[mergetool]
prompt = false
[alias]
d = difftool
di = difftool
co = checkout
br = branch
pr = pull --rebase
dc = dcommit
ci = commit
st = status
last = log -1 HEAD
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 --
s = "!f() { rev=${1-HEAD}; git difftool $rev^ $rev; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment