-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
73 lines (72 loc) · 1.66 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
[user]
name = Max Pushkarov
[init]
defaultBranch = main
[core]
editor = hx
excludesFile = ~/.gitignore
[alias]
a = add
aa = add --all
b = branch
c = commit
ca = commit --amend
can = commit --amend --no-edit
cc = "!f() { DATE=\"$1\"; shift; GIT_COMMITTER_DATE=$DATE git commit --date=\"$DATE\" \"$@\"; }; f" # custom commit
cl = clone --recurse-submodules
co = checkout
cp = cherry-pick
d = diff
ds = diff --staged
dsc = "!f() { git ds \"$@\" | pbcopy; }; f"
dst = diff --stat
dsst = diff --stat --staged
f = fetch
fa = fetch --all --prune --jobs=10
lg = log --stat --graph
p = push
pf = push --force-with-lease --force-if-includes
pr = pull --rebase
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rs = restore
rss = restore --staged
st = status
sh = stash
shl = stash list
shu = stash --keep-index --include-untracked
shp = stash pop
sw = switch
swm = switch $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
up = pull --ff-only --all --prune --jobs=10
w = worktree
wa = worktree add
wab = "!f() { git worktree add \"$(git rev-parse --show-toplevel)/../$1\" \"$1\"; }; f"
wl = worktree list
wm = worktree move
wrm = worktree remove
[pull]
ff = only
[push]
autoSetupRemote = true
[submodule]
recurse = true
[ghq]
root = ~/dev
# delta
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
side-by-side = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[pager]
blame = delta
# delta end