-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
93 lines (74 loc) · 2.47 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[core]
pager = "eval ${GITPAGER}"
fsmonitor = true
untrackedCache = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
#old = red # deletions # this is the default
#new = green # additions # this is the default
[color "status"]
added = green bold
changed = red bold strike
untracked = cyan
branch = yellow bold ul
# These are ignored if you aren't running VSCode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[mergetool "vscode"]
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
[commit]
# https://help.github.com/articles/signing-commits-using-gpg/
gpgSign = true
verbose = true
[interactive]
diffFilter = "eval $GITPAGER"
[rebase]
instructionFormat = (%al) %s
[pull]
fastforward = true
ff = only
rebase = true
[user]
email = [email protected]
name = Max 👨🏽💻 Coplan
signingKey = ~/.ssh/id_rsa.pub
[help]
autocorrect = 1
# force ssh
#[url "[email protected]:"]
# insteadOf = "https://github.com/"
[http]
cookiefile = ~/.gitcookies
[rerere]
enabled = true
[include]
path = ~/dotfiles/bytedance_private.gitconfig
[includeIf "gitdir:~/workspace/code.*.org/**/"]
path = ~/dotfiles/work.gitconfig
[maintenance]
repo = ~/workspace/github.com/vegerot/APODesktop
repo = ~/workspace/github.com/vegerot/dotfiles
[gpg]
format = ssh
[alias]
# Switch fast
s = "!{ git for-each-ref --sort=-committerdate --format='%(refname)' refs/heads/ refs/remotes/$(git remote || printf origin)|sed -e 's-refs/heads/--'| sed -e \"s-refs/remotes/$(git remote || printf origin)/--\" & printf 'develop\nmain\nmaster\n'; } | uniq | grep -i -m1 --color=never $1 | xargs -I {} sh -c \" echo {}; git switch {}\""
fr = !git fetch $(git remote | head) && git rebase
frm = !git fetch $(git remote | head) && git rebase $(git remote | head)/main
fru = !git fetch upstream && git rebase upstream/main
cw = commit --fixup=wip
# Switch fuzzy
sf = !git switch $(git for-each-ref --sort=-committerdate --format='%(refname)' refs/heads/ refs/remotes/$(git remote || printf origin)/|sed -e 's-refs/heads/--'| sed -e \"s-refs/remotes/$(git remote || printf origin)/--\" | uniq | fzf) $@
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers