-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgitconfig
More file actions
76 lines (69 loc) · 1.8 KB
/
gitconfig
File metadata and controls
76 lines (69 loc) · 1.8 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
[user]
username = aar0nTw
name = Aaron Huang
email = aaroms9733@gmail.com
[alias]
cki = "!git checkout $(git branch | cut -c 3- | peco)"
mgi = "!git merge $(git branch | cut -c 3- | peco)"
adi = "!git add $(git status -s | cut -c 4- | peco)"
rmci = "!git rm --cached -r $(git status -s | cut -c 4- | peco)"
mdb = "!f() { if [ -z $1 ]; then echo 'Please assign branch namespace.'; else git branch | awk -F. '/'"$1"'/{print}' | xargs -I {} git branch -D {}; fi }; f"
bdi = "!git branch -D $(git branch | cut -c 3- | peco)"
pr = pull-request
ck = checkout
cl = clone
cp = cherry-pick
sub = submodule
c = commit -s
l = log --graph --oneline
s = show --pretty=oneline
st = status -s
a = add
aa = add -A
au = add -u
di = diff HEAD --
ckh = checkout HEAD --
f = fetch
merge = merge --no-ff
di1 = diff HEAD^ HEAD
d = difftool
dis = diff --staged
rb = rebase
sha = rev-parse --short=8 HEAD
cpsha = "!git rev-parse --short=8 HEAD | pbcopy"
root = rev-parse --show-toplevel
;[core]
; excludesfile = /Users/apple/.gitignore_global
; ignorecase = false
;[difftool "sourcetree"]
; cmd = opendiff \"$LOCAL\" \"$REMOTE\"
; path =
;[mergetool "sourcetree"]
; cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
; trustExitCode = true
[color]
diff = auto
status = auto
branch = auto
ui = auto ;[mergetool]
; keepBackup = true
[github]
user = aar0nTw
email = aaroms9733@gmail.com
[core]
editor = nvim
autocrlf = false
excludesfile = ~/Projects/.gitignore
pager = diff-so-fancy | less --tabs=1,5 -R
[push]
default = current
[color "diff"]
new = green
old = red
[pager]
log = diff-highlight | less
show = diff-highlight | less
[diff]
tool = vimdiff
[init]
defaultBranch = main