-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitconfig
72 lines (72 loc) · 1.94 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
[user]
name = Jimmy Zelinskie
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFFLZXAb2TmLXbo9stYA5Lr2xbgyyHl5QXlTJ5VsoJNB\n"
[color]
ui = auto
[alias]
amend = commit --amend --no-edit
ammend = amend
cherrypick = cherry-pick
co = checkout
cob = "!f() { git checkout master; git pull; git checkout -b $1; }; f"
comit = commit
copr = "!f() { git fetch $1 pull/$2/head:pr-$2 && git checkout pr-$2; }; f"
dc = diff --cached
dif = diff
find = log --pretty=\"format:%Cgreen%H\n%s\n\n%b\" --name-status --grep
fixup = "!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
grep-open = "!f() { git grep $1 | cut -d: -f1 | xargs $EDITOR; }; f"
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue) -%an%Creset' --abbrev-commit
pullr = pull --rebase
rebase-i = rebase -i --autostash
remotes = remote
s = status --short --branch --ignore-submodules=untracked
sha = rev-parse --short
stage-head = git reset --soft HEAD~
unadd = reset HEAD
unstage = restore --staged
sw = switch
prune-branches = "!f() { git branch --merged | egrep -v \"(^\\*|main|master|dev)\" | xargs git branch -d; }; f"
[core]
excludesfile = ~/.gitignore
safecrlf = true
trustctime = false
[merge]
conflictstyle = zdiff3
[diff]
algorithm = histogram
submodule = log
compactionHeuristic = true
mnemonicprefix = true
[push]
default = simple
[github]
user = jzelinskie
[rerere]
enabled = true
[pull]
ff = only
[rebase]
autoStash = true
autoSquash = true
[init]
defaultBranch = main
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[status]
submodulesummary = true
[submodule]
recurse = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[gpg]
format = ssh
[commit]
verbose = true
gpgsign = true
[tag]
gpgsign = true