-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
33 lines (33 loc) · 1.06 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[core]
editor = vim
pager = less -F -X -R [color]
ui = auto
pager = less -F -X
[diff]
tool = vimdiff
[difftool]
prompt = false
[alias]
d = difftool
l = log --pretty=format:'%C(auto)%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ci) %C(cyan bold)<%an>%Creset' --abbrev-commit
lg = log --graph --pretty=format:'%C(auto)%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cd) %C(cyan)<%an>%Creset' --abbrev-commit
st = status -bs
graph = log --decorate --oneline --graph
delete-branch = "!f() {git branch -d $1 && git push origin --delete $1 git && fetch --all --prune} f;"
clean-branches = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
[difftool "vimdiff"]
cmd = "vimdiff -R ${REMOTE} -c ':se noreadonly' ${LOCAL}"
[mergetool "vimdiff3"]
cmd = vim -u ~/.vimrc -f -d -c \"wincmd J\" \"$MERGED\" -R \"$LOCAL\" \"$BASE\" \"$REMOTE\"
[push]
default = simple
[mergetool]
prompt = false
[merge]
tool = vimdiff
[help]
autocorrect = 20
[include]
path = ~/.gitconfig.user
[log]
date = local