-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
81 lines (81 loc) · 2.46 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
74
75
76
77
78
79
80
81
[core]
editor = vim
excludesfile = ~/.gitignore_global
quotepath = false
abbrev = 9
; pager = delta
[delta]
; plus-color = "#012800"
; minus-color = "#340001"
; syntax-theme = Monokai Extended
; syntax-theme = light
[interactive]
diffFilter = delta --color-only
[alias]
ci = commit -a -v
st = status -sb
br = branch
co = checkout
df = diff
dc = diff --cached
throw = reset --hard HEAD
throwh = reset --hard HEAD^
throwa = !git reset --hard HEAD && git clean -fd
rb = rebase
lg = log --abbrev-commit --decorate --all --graph
# ll = log --abbrev-commit --oneline --decorate --all
ll = log --abbrev-commit --oneline --decorate --all
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
changelog = log --oneline --format='%h %s (%cr) <%an>'
ql = log --oneline --decorate -10 --pretty=format:'%C(yellow)%h%C(reset)%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an> %C(bold black)[%G?]%Creset'
qll = log --oneline --decorate --pretty=format:'%C(yellow)%h%C(reset)%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an> %C(bold black)[%G?]%Creset'
ls = ls-files
ign = ls-files -o -i --exclude-standard
branches = branch -a
branch-name = rev-parse --abbrev-ref --symbolic-full-name HEAD
remotes = remote -v
ac = !git add -A && git commit
lasttag = describe --tags --abbrev=0
tagsort = !sh -c 'git tag -l $1 | sort -V'
[merge]
tool = vimdiff
[diff]
tool = vimdiff
[difftool]
prompt = false
[i18n]
commitEncoding = utf-8
[gui]
encoding = utf-8
[color]
ui = true
[push]
default = current
[pull]
rebase = true
[url "[email protected]:"]
insteadOf = github:
[user]
name = Tony Xu
email = [email protected]
[includeIf "gitdir:~/workspace/01-work/08-t2cloud/"]
path = ~/.gitconfig.t2cloud
[includeIf "gitdir:~/workspace/01-work/09-cepo/"]
path = ~/.gitconfig.cepo
[commit]
template = ~/.gitmessage
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main
[http]
sslBackend = openssl
[safe]
directory = /opt/homebrew/Library/Taps/homebrew/homebrew-core
directory = /opt/homebrew/Library/Taps/homebrew/homebrew-core
directory = /opt/homebrew/Library/Taps/homebrew/homebrew-cask
directory = /opt/homebrew/Library/Taps/homebrew/homebrew-services