dotfiles/home/.config/git/config

66 lines
1.1 KiB
Plaintext

[alias]
a = add
ae = a -e
ba = branch
bach = "!f() { \
git ba \"$1\" \
&& git ch \"$1\"; \
}; f"
bd = ba -d
bfd = ba -D
ch = checkout
cl = clone
cl1 = cl --depth=1
co = commit -sm
coa = "!f() { \
local message=\"$1\"; \
local author=\"$2\"; \
git co \"${message}\" --author \"${author}\"; \
}; f"
cota = "!f() { \
local version=\"v$(cat VERSION)\"; \
git co \"$1\" \
&& git ta \"${version}\"; \
}; f"
fu = "!f() { \
git fetch upstream \
&& git ch master \
&& git rebase upstream/master; \
}; f"
fup = !git fu && git pat
p = push
pa = push --all
pt = push --tags
pat = !git pa && git pt
r = remote
ra = r add
ru = r set-url
rua = ru --add
rud = ru --delete
rl = r -v
rr = r remove
s = status
t = tag
ta = "!f() { \
git t -am \"$1\" \"$1\"; \
}; f"
td = t -d
tl = t -l
[commit]
gpgSign = true
[core]
editor = vim
gitProxy = git-proxy
pager = less
[include]
path = ~/.config/git/config-secret
[init]
defaultBranch = main
[http]
proxy = socks5h://127.0.0.1:9050
[http "http://*.loki"]
proxy =
[tag]
forceSignAnnotated = true
gpgSign = true