dotfiles/config/gitconfig/termux

43 lines
1.3 KiB
Plaintext

# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Andrei Jiroh Eugenio Halili
email = andreijiroh@madebythepins.tk
# Don't ask why I don't use my old GPG key anymore.
# The old key I'm saying is the one in Keybase.
# Looks kinda outdated, but I'll fix it soon.
signingKey = A30EBE40AD856D88
[commit]
signoff = true
gpgSign = true
[tag]
gpgSign = true
[core]
## For god's sake, use Nano as possible.
## This way, we don't need to install VS Code again
## if we want to edit files.
editor = nano
[gpg]
# use OkcAgent's GPG client to sign using my key in OpenKeychain
program = okc-gpg
# Enforce SSH
[url "git@github.com:"]
insteadOf = https://github.com/
pushInsteadOf = https://github.com/
[url "git@gitlab.com:"]
insteadOf = https://gitlab.com/
pushInsteadOf = https://gitlab.com/
[url "git@bitbucket.org:"]
insteadOf = https://bitbucket.org/
[init]
defaultBranch = main
# aliases
[alias]
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"
signoff = "commit --signoff"
stage = "add"
unstage = "restore --staged"
stats = "status"