-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
71 lines (71 loc) · 1.56 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
[core]
editor = vim
longpaths = true
[alias]
a = add
af = add -f
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
aamend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -a -F - --amend
ap = add -p
bl = blame
br = branch
bra = branch -a
brd = branch -D
brf = branch -f
c = commit
ca = commit -a
cam = commit -am
chmux = update-index --chmod=+x
chp = cherry-pick
chpt = cherry-pick temp
cl = clone
clg = clone-gerrit
cm = commit -m
co = checkout
co1 = checkout HEAD^
cob = checkout -b
cobf = checkout -B
dif = diff
difc = diff --cached
difw = diff --word-diff
f = fetch --all
fe = f
gr = grep -n
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit
log3 = log -3
log5 = log -5
ls = ls-files
me = merge --allow-unrelated-histories
meff = merge --ff-only
men = merge --no-ff
re = remote -v
rank-commit = shortlog -sn --no-merges
rh = reset --hard
ri = rebase -i
ri2 = rebase -i HEAD^^
sh = show
st = status
tagd = tag -d
tagf = tag -f
tagt = tag -f temp
tagt2 = tag -f temp2
[color]
ui = auto
[diff]
mnemonicprefix = true
[gui]
gcwarning = false
[merge]
tool = vimdiff
[difftool]
prompt = false
[init]
defaultBranch = main
[branch]
sort = -committerdate
[commit]
gpgsign = true
[gpg]
format = openpgp
[gpg "ssh"]
allowedSignersFile = $HOME/.git_allowed_signers