-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
82 lines (62 loc) · 1.9 KB
/
Copy pathgitconfig
File metadata and controls
82 lines (62 loc) · 1.9 KB
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
[user]
name = Eric Ng
email = ericnjf@gmail.com
[pull]
ff = only
[push]
default = upstream
[color]
ui = true
[alias]
l = log --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr | %ar) %C(bold blue)<%an>%Creset' --abbrev-commit
l1 = log --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr | %ar) %C(bold blue)<%an>%Creset' --abbrev-commit -1
l9 = log --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr | %ar) %C(bold blue)<%an>%Creset' --abbrev-commit -9
la = log --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr | %ar) %C(bold blue)<%an>%Creset' --abbrev-commit --all
lh = log --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr | %ar) %C(bold blue)<%an>%Creset' --abbrev-commit HEAD
s = status
ss = status -s
su = status -uno
sh = show --color --pretty=format:%b
uncommit = reset HEAD~1 --soft
unstage = reset HEAD .
recommit = commit --amend --no-edit
a = add -u
ap = add -u -p
rp = reset -p
b = branch
bb = branch -vv
d = diff
dc = diff --cached
ds = diff --name-status
dw = diff -w
dwc = diff --cached -w
dsw = diff --name-status -w
# custom plug-in
f = feature
fa = fetch --all
fap = fetch --all --prune
co = checkout
cont = checkout --no-track
dh = diff -w HEAD~1..HEAD
dm = diff -w master..HEAD
pf = pull --ff-only
pom = push origin master
unstash = stash pop
vim = difftool --tool=nvimdiff
### custom plugins
v = visibility
sb = syncbranch
move = syncbranch move
sync = syncbranch sync
i = info
[difftool "nvimdiff"]
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
[core]
autocrlf = false
excludesfile = ~/.gitignore
editor = /usr/bin/vim
pager = less -x2
[github]
user = ZwodahS
[init]
defaultBranch = main