-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
74 lines (58 loc) · 1.95 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
[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
[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 = mchcopl@gmail.com
name = Max 👨🏽💻 Coplan
signingKey = ~/.ssh/id_rsa.pub
[help]
autocorrect = 1
# force ssh
#[url "git@github.com:"]
# insteadOf = "https://github.com/"
[http]
cookiefile = ~/.gitcookies
[rerere]
enabled = true
[includeIf "gitdir:~/workspace/code.byted.org/**/"]
path = ~/dotfiles/work.gitconfig
[maintenance]
repo = ~/gecgithub01.walmart.com/walmart-web/walmart-web-worktree/main
[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 {}\""
# 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) $@
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