-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
102 lines (102 loc) · 2.85 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[user]
name = "Dummy User"
email = "[email protected]"
[core]
excludesfile = ~/.gitignore
autocrlf = false
quotepath = false
editor = code
precomposeunicode = true
pager = diff-so-fancy | less
[color]
diff = auto
status = auto
branch = auto
grep = auto
interactive = true
ui = true
[alias]
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort
gen-ignore = !"f() { local s=$1; shift; while [ $# -gt 0 ]; do s="$s,$1"; shift; done; curl "http://gitignore.io/api/$s"; }; f"
showuser = config --get-regexp "^user"
br = branch
contains = branch -r --contains
bc = checkout -b
ci = commit -sS
wip = commit -m wip
co = checkout
com = checkout master
sco = !git checkout $(git branch | peco)
di = diff --color-words
dc = diff --cached
s = status --short --branch
st = status --branch
sh = show
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg = log --graph
last = !git --no-pager log -1 HEAD
log1 = log --oneline
info = remote show origin
sm = submodule
su = submodule update
au = update-index --assume-unchanged
noau = update-index --no-assume-unchanged
nau = update-index --no-assume-unchanged
sw = update-index --skip-worktree
nosw = update-index --no-skip-worktree
nsw = update-index --no-skip-worktree
vau = !git ls-files -v | grep ^[a-z]
vsw = !git ls-files -v | grep ^[Ss]
mt = mergetool
fetch-pulls = fetch origin +refs/pull/*:refs/remotes/pull/*
fpr = fetch origin +refs/pull/*:refs/remotes/pull/*
f = fetch --prune
fu = fetch --prune upstream
fp = !"git fetch && git pull"
pull-dry-run = !"git fetch origin; B=$(git rev-parse --abbrev-ref HEAD); git diff --stat --summary ${B}..origin/${B}"
pu = !"git push -u origin $(git branch --contain=@ | awk '{print $2}')"
puf = push --force-with-lease
pt = push --tags
rebase = rebase -S
rb = rebase
rbm = rebase origin/master
rbi = rebase --interactive
rbim = rebase --interactive origin/master
rbc = rebase --continue
rba = rebase --abort
delete-merged-branch = !"git checkout $1; git branch --merged|egrep -v '\\*|develop|master'|xargs git branch -d"
[branch]
autosetuprebase = always
[commit]
template = ~/.git-commit.template
gpgsign = true
[diff]
algorithm = histogram
compactionHeuristic = true
renames = true
tool = vimdiff
[i18n]
commitencoding = utf-8
[log]
date = local
[merge]
ff = false
tool = vimdiff
[pull]
rebase = true
[push]
default = simple
[rebase]
autosquash = true
[status]
showUntrackedFiles = all
[include]
path = ~/.gitconfig-local
[color "diff-highlight"]
newNormal = green
newHighlight = green 22
[diff-so-fancy]
first-run = false
[pager]
branch = peco