-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
112 lines (87 loc) · 2.21 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
103
104
105
106
107
108
109
110
111
112
[include]
path = .gituser
[core]
editor = vim
excludesfile = ~/.gitignore
[color]
ui = true
[alias]
# Branch controls
co = checkout
cob = checkout -b
b = branch -vv
# What do things look like at the moment?
st = status
di = diff
dc = diff --cached
ds = diff --stat=160,120
dh1 = diff HEAD~1
# Make and rearrange commits
ci = commit
amend = commit --amend
ane = commit --amend --no-edit
aa = add --all
ri = rebase --interactive
# Special merges:
ff = merge --ff-only
puff = pull --ff-only
noff = merge --no-ff
# Update tracking info
fa = fetch --all
rup = remote update --prune
# Update remotes
po = push origin
pom = push origin main --tags
pod = push origin develop
# Requires semver, which is non-standard.
sv = semver-tags
# for `hub`
prq = pull-request
# Checkpoint: save current state with a UUID for a commit message. Commit
# early, commit often, interactive rebase, push late.
checkpoint = "!. ~/.githelpers && git_checkpoint"
ch = !git checkpoint
# Divergence (commits we added and commits remote added)
div = divergence
# Fancy logging.
# h = head
# hp = head with patch
# r = recent commits, only current branch
# ra = recent commits, all reachable refs
# l = all commits, only current branch
# la = all commits, all reachable refs
head = !git l -1
h = !git head
hp = "!. ~/.githelpers && show_git_head"
r = !git l -20
ra = !git r --all
l = "!. ~/.githelpers && pretty_git_log"
la = !git l --all
[advice]
detachedHead = true
[pager]
diff = diff-so-fancy | less --tabs=4 -RFX
show = diff-so-fancy | less --tabs=4 -RFX
[push]
default = simple
[merge]
defaultToUpstream = true
tool = vimdiff
[branch]
autosetupmerge = always
[rerere]
enabled = true
[pager]
branch = false
[github]
user = wlonk
[ghi]
token = !security find-internet-password -a wlonk -s github.com -l 'ghi token' -w
[gpg]
program = /usr/local/MacGPG2/bin/gpg2
[diff-so-fancy]
first-run = false
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[init]
defaultBranch = main