-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
48 lines (48 loc) · 1.33 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
[user]
name = Valeriy V. Vorotyntsev
email = [email protected]
[alias]
D1 = branch -D @{-1}
actions = "!f() { gh run list --branch $(git rev-parse --abbrev-ref HEAD); }; f"
author = log -1 --pretty='%an <%ae>' --author
b = branch
co = checkout
fm = fetch -p origin master:master
mg = "!f() { git merge --ff-only ${*:-'@{upstream}'}; }; f"
pf = push --force-with-lease
ph = "!f() { local cmd='git push'; if [ $# -lt 2 ]; then $cmd origin ${1:-HEAD}; else $cmd $@; fi; }; f"
phf = "!f() { local cmd='git push --force-with-lease'; if [ $# -lt 2 ]; then $cmd origin ${1:-HEAD}; else $cmd $@; fi; }; f"
sb = show-branch
st = status -sb
wt = worktree
[merge]
conflictStyle = diff3
[rerere]
enabled = true
[rebase]
autoSquash = true
[log]
# Enable `git log --follow` by default
# (track the history of a moved file).
#
# via https://twitter.com/mwotton/status/945049811010703360
follow = true
[init]
defaultBranch = main
[receive]
denyCurrentBranch = warn
[diff "sopsdiffer"]
textconv = sops -d
# [url "[email protected]:"]
# insteadOf = https://github.com/
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential]
helper = store
helper =
helper = /usr/local/share/gcm-core/git-credential-manager
[credential "https://dev.azure.com"]
useHttpPath = true