-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
73 lines (73 loc) · 2.14 KB
/
.gitconfig
File metadata and controls
73 lines (73 loc) · 2.14 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
[user]
name = sevenc-nanashi
email = sevenc7c@sevenc7c.com
signingkey = 8EA980D9E38854E3A3E94F78D5D32B3B16612592
[credential]
helper = store --file ~/.git_credentials
[color]
ui = true
[core]
excludesfile = ~/.gitignore_global
autocrlf = input
filemode = false
symlinks = true
whitespace = cr-at-eol
safecrlf = false
quotepath = false
editor = nvim
pager = delta
attributesfile = ~/.gitattributes_global
preloadindex = true
fscache = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main
[gpg]
program = gpg
[commit]
verbose = true
gpgsign = false
[alias]
sl = !"git log --pretty=\"%C(yellow)%h%C(brightyellow)) %C(brightcyan)%an%C(cyan) %C(cyan)- %C(reset)%s%C(brightgreen)%d\""
mdiff = "diff --merge-base"
pushf = push --force-with-lease
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ >> .gitignore ;}; gi"
change-commits = "!f() { VAR1=$1; VAR='$'$1; OLD=$2; NEW=$3; echo \"Are you sure for replace $VAR $OLD => $NEW ?(Y/N)\";read OK;if [ \"$OK\" = 'Y' ] ; then shift 3; git filter-branch --env-filter \"if [ \\\"${VAR}\\\" = '$OLD' ]; then export $VAR1='$NEW';echo 'to $NEW'; fi\" $@; fi;}; f "
sync = !"f(){ git pull && git push; }; f"
cmerge = !"f(){ echo $1 > $(git rev-parse --git-dir)/cmerge; git merge $1 -m \"merge: $1 -> $(git rev-parse --abbrev-ref HEAD)\"; }; f"
ccmerge = !"f(){ git commit -am \"merge: $(cat $(git rev-parse --git-dir)/cmerge) -> $(git branch --show-current)\"; rm $(git rev-parse --git-dir)/cmerge; }; f"
undo = reset --soft HEAD~1
amend = "commit --amend --no-edit"
puhs = "push"
commti = "commit"
[push]
default = current
autoSetupRemote = true
[advice]
detachedHead = false
[pull]
default = current
rebase = true
autostash = true
[http]
postBuffer = 524288000
[rebase]
autoStash = true
[merge "mergiraf"]
name = mergiraf
driver = mergiraf merge --git %O %A %B -s %S -x %X -y %Y -p %P -l %L
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
syntax-theme = "ansi"
[merge]
conflictStyle = zdiff3
[rerere]
enabled = true
[ghq]
root = /home/sevenc7c/ghq