-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
78 lines (76 loc) · 2.4 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
[core]
pager = delta
excludesfile = /Users/nattawatnonsung/.gitignore_global
editor = /usr/bin/vim
[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
[user]
name = Nattawat Nonsung
email = [email protected]
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lg2 = log --graph --pretty=format:'%Cred%h%Creset - %C(dim white)%aD%C(reset) %Cgreen(%cr) %C(bold blue)<%an>%Creset%n %C(yellow)%d%Creset %s' --abbrev-commit
taglg = log --tags --simplify-by-decoration --pretty='format:%ai %d'
ls = ls-tree --name-only -r HEAD
st = status
pullr = pull --rebase
co = checkout
cm = commit
cma = commit --amend --no-edit
cp = cherry-pick
rb = rebase
diffnolock = "!f() { \
DIFF=${1:-}; \
git diff $DIFF -- . ':!package-lock.json'; \
}; f"
shownolock = "!f() { \
DIFF=${1:-}; \
git show $DIFF -- . ':!package-lock.json'; \
}; f"
diffcomponents = "!f() { \
DIFF=${1:-}; \
CUT_UNTIL=${2:-2}; \
git diff $DIFF --dirstat-by-file=0 | sed -E 's/^[ 0-9. ]+% //g' | cut -d'/' -f 1-$CUT_UNTIL | uniq; \
}; f"
myy = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all --since=yesterday [email protected]
myf = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all --since='3 days ago' [email protected]
stag = tag --sort version:refname
sdtag = for-each-ref --sort=taggerdate --format '%(refname) %(taggerdate)' refs/tags
[push]
default = current
followTags = true
[merge]
defaultToUpstream = true
conflictstyle = zdiff3
[branch]
autosetuprebase = always
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[credential]
helper = osxkeychain
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[gc]
auto = 1
[delta]
features = decorations
navigate = true
[delta "decorations"]
file-style = bold yellow ul
file-decoration-style = none
[interactive]
diffFilter = delta --color-only
[init]
defaultBranch = master