-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
28 lines (27 loc) · 1 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
[merge]
conflictstyle = diff3
[color]
ui = true
[alias]
view = log --graph --oneline --decorate --boundary --all HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgn = log --color -n 1 --name-only
sync = !tmp_branch="$(git rev-parse --abbrev-ref HEAD)" && git checkout "$1" && git pull && git checkout "${tmp_branch}" && git rebase "$1"
checkuot = checkout
brnach = branch
balefire = "!f() { git filter-branch --index-filter \"git rm --cached --ignore-unmatch $1\" --tag-name-filter cat -- --all ; }; f $1"
[core]
editor = vim
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[difftool]
prompt = false
[difftool "vimdiff"]
# Diff two files, local file editable and remote file readonly.
cmd = vim -R -f -d -c \"wincmd l\" -c 'set noreadonly' -c 'cd \"$GIT_PREFIX\"' \"$LOCAL\" \"$REMOTE\"
[push]
default = current
[url "ssh://[email protected]/treaster/"]
insteadOf = https://github.com/treaster/