-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
50 lines (50 loc) · 1.55 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
[user]
name = sevenc-nanashi
email = [email protected]
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
[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\""
pushf = push --force-with-lease
cmerge = !"fn(){ git merge $1 -m \"Merge: $1 -> $(git rev-parse --abbrev-ref HEAD)\"; }; fn"
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"
ccmerge = !"f(){ git commit -am \"Merge: main -> $(git branch --show-current)\"; }; f"
undo = reset --soft HEAD~1
amend = "commit --amend --no-edit"
[push]
default = current
autoSetupRemote = true
[advice]
detachedHead = false
[pull]
default = current
rebase = true
autostash = true
[http]
postBuffer = 524288000
[rebase]
autoStash = true