-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
55 lines (54 loc) · 1.14 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
[user]
name = Steve Robinson
email = [email protected]
[core]
editor = subl --wait
excludesfile = ~/.gitignore
[push]
default = current
autoSetupRemote = true
[pull]
rebase = true
[diff]
submodule = log
[init]
defaultBranch = main
[alias]
a = add
aw = !git add . && git commit -m WIP
awp = !git aw && git p
acf = !git add . && git cf
acfp = !git acf && git p
b = branch
co = commit -v
coa = commit -v --amend
c = checkout
cl = clone
cm = checkout main
cf = !git commit --fixup $(git rev-parse HEAD)
d = diff
dn = difftool --no-ext-diff
g = grep
f = fetch
m = mergetool
mc = merge --continue
ma = merge --abort
l = log --oneline --decorate
ls = ls-files
p = push
pf = push --force-with-lease
pu = pull
ri = rebase -i
rih = !git rebase -i HEAD~${1}
rom = rebase origin/main
ra = rebase --abort
rc = rebase --continue
rs = rebase --skip
r = remote -v
s = status
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
branchd = !git branch -D $1 && git push --delete origin $1
suba = submodule update
subar = submodule update --recursive