-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
61 lines (55 loc) · 1.49 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
[user]
name = Takafumi ONAKA
email = takafumi.onaka@gmail.com
[alias]
a = add
ap = add -p
b = branch
ba = branch -a
bm = branch -a --merged
bn = branch -a --no-merged
cancel = !git add . && git commit -m 'Temporary commit for cancel' && git reset --hard HEAD~
ch = cherry-pick
chm = cherry-pick -x -m 1
ci = commit -v
cl = clean -fd
co = checkout
con = diff --name-only --diff-filter=U
d = diff -b
ds = diff --staged -b
f = fetch -p
fix = commit -v --amend
gh = ! sh -c 'git fetch origin pull/$1/head:GH-$1 && git switch GH-$1' --
gone-branch-develop = !git branch --delete $(git branch --merged origin/develop | egrep -v '^(\\*| ) develop$')
gone-branch-master = !git branch --delete $(git branch --merged origin/master | egrep -v '^(\\*| ) master$')
md = merge origin/develop --ff
mm = merge origin/master --ff
mn = merge origin/main --ff
n = now --all --stat
ph = push origin HEAD
phf = push origin HEAD --force-with-lease --force-if-includes
r = rebase
rc = rebase --continue
re = reset HEAD~1
remotes = remote -v
ri = rebase -i
rom = rebase origin/master
ron = rebase origin/main
rp = rebase -p
s = status -sb
[core]
excludesfile = ~/.gitignore_global
hooksPath = ~/.git_hooks
commentchar = ";"
[interactive]
singlekey = true
[pager]
log = ~/bin/diff-highlight | less
show = ~/bin/diff-highlight | less
diff = ~/bin/diff-highlight | less
[ghq]
root = ~/src
[include]
path = .gitconfig.local
[init]
defaultBranch = main