-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
executable file
·51 lines (51 loc) · 1.58 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[user]
email = ytamai@gmail.com
name = u-4
[diff]
tool = WinMerge
[difftool]
prompt = false
[difftool "WinMerge"]
cmd = '/mnt/c/Program Files/WinMerge/WinMergeU.exe' -e -r -u -x -wl -wr -dl \"a/$MERGED\" -dr \"b/$MERGED\" \"$(wslpath -am \"$LOCAL\")\" \"$(wslpath -am \"$REMOTE\")\"
trustExitCode = false
[merge]
tool = WinMerge
[mergetool]
prompt = false
keepBackup = false
[mergetool "WinMerge"]
cmd = '/mnt/c/Program Files/WinMerge/WinMergeU.exe' \"$MERGED\"
trustExitCode = false
[core]
autocrlf = false
editor = vim
excludesfile = ~/.gitignore_global
quotepath = false
[gui]
encoding = utf-8
[color]
ui = auto
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
#[init]
# templatedir = ~/.git_template
[alias]
dd = "difftool --dir-diff --no-symlinks"
ddc = "difftool --dir-diff --cached --no-symlinks"
graph = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
co = checkout
cm = commit
st = status
br = branch -av
ft = fetch --prune
uncommit = reset HEAD^
hist = log --graph --stat
l = log --graph --all --format=format:'%C(bold red)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold blue)― %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
ignore = !"f() { local s=$1; shift; \
while [ $# -gt 0 ]; do s=\"$s,$1\"; shift; done;\
curl \"https://www.gitignore.io/api/$s\"; }; f"
delete-merged-branches = !git branch --merged | grep -v \\* | xargs -I % git branch -d %
sco = !git checkout $(git branch | peco)