-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitconfig
50 lines (50 loc) · 1.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
[color]
ui = auto
[gui]
encoding = utf-8
[core]
quotepath = false
editor = emacsclient --no-wait --create-frame
autoCRLF = false
[alias]
a = add .
c = commit -v
ci = commit -v
b = branch
o = checkout
co = checkout
s = status
st = status
ss = status -s
sh = show
p = pull
pu = push --set-upstream origin
alias = !git config --get-regexp '^alias\\.' | sed 's/alias\\.\\([^ ]*\\) \\(.*\\)/\\1\\\t => \\2/' | sort
ta = log --graph --branches --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(green)- %an, %cr%Creset'
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order
drag = pull --rebase
refresh= !git fetch origin && git remote prune origin
d = diff
d1 = diff HEAD~
d2 = diff HEAD~2
d3 = diff HEAD~3
f = "!git ls-files | grep -i"
precommit = diff --cached --diff-algorithm=minimal -w
oneline = log --oneline
ec = !git commit --allow-empty -m \"Make PR\"
mkpr = !"f() { git checkout -b $1; git ec; git push -u origin $1; gh pr create -l WIP -a tsu-nera -t $1; }; f"
[user]
email = fox10225fox@gmail.com
name = tsu-nera
[init]
defaultBranch = main
[url "https://"]
insteadOf = git://
[github]
user = tsu-nera
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true