-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
60 lines (58 loc) · 1.48 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
[user]
name = Rudy Lee
email = [email protected]
[diff]
[color]
ui = auto
[alias]
aa = add --all
amd = commit --amend
b = branch
bd = branch -D
c = commit
cl = clone
cm = commit -m
co = checkout
cb = checkout -b
dc = diff --cached
dh1 = diff HEAD~1
dhn = diff HEAD~1 --name-status
di = diff
ds = diff --stat=160,120
fa = fetch --all
ff = merge --ff-only
ffum = merge --ff-only upstream/main
noff = merge --no-ff
pom = push origin main
pof = "!git push origin \"$(git rev-parse --abbrev-ref HEAD)\" --force"
pob = "!git push origin \"$(git rev-parse --abbrev-ref HEAD)\""
pullff = pull --ff-only
pur = pull --rebase
prd = pull-request --draft
prs = pr show
st = status
sq = rebase -i HEAD~2
sc = !git fetch --all && git merge --ff-only upstream/main && git push origin main
rem = rebase main
rc = rebase --continue
rs = restore --staged
# 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 -30
ra = !git r --all
l = "!. ~/.githelpers && pretty_git_log"
la = !git l --all
[core]
editor = vim
[credential]
helper = cache --timeout=28800
[github]
user = rudylee