-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
46 lines (45 loc) · 1.02 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
# This is Git's per-user configuration file.
# symlinked to dott
[user]
name = oceanbao
email = oceanbao@outlook.com
[merge]
tool = vimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[core]
editor = nvim
excludefile = ~/.gitignore
[push]
default = simple
[color]
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
ui = auto
[alias]
a = add
d = diff
co = checkout
ci = commit
ca = commit -a
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)"
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)"
st = status
br = branch
ba = branch -avv
bm = branch --merged
bn = branch --no-merged
hist = log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --all
llog = log --graph --name-status --pretty=format:\"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset\" --date=relative
[hub]
protocol = ssh
[github]
user = oceanbao
[diff]
tool = nvimdiff
[init]
defaultBranch = main