Update configuations on SSH client and non-gpg version of Linux gitconfig

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-06-10 00:38:20 +08:00
parent 1417ca414d
commit 5d331e15a9
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
3 changed files with 82 additions and 20 deletions

81
no-gpg.gitconfig Normal file → Executable file
View File

@ -1,16 +1,71 @@
# This is Git's per-user configuration file.
# Git Credential handlers with GitHub/GLab CLI
[credential "https://github.com"]
helper = !gh auth git-credential
[credential "https://gitlab.com"]
helper = !glab auth git-credential
[credential "https://gitlab.alpinelinux.org"]
helper = !glab auth git-credential
[credential "https://salsa.debian.org"]
helper = !glab auth git-credential
[credential "https://mau.dev"]
helper = !glab auth git-credential
# User config
[user]
# Please adapt and uncomment the following lines:
email = ajhalili2006@gmail.com
name = Andrei Jiroh Eugenio Halili
email = andreijiroh@madebythepins.tk
# signingKey = A30EBE40AD856D88
#signingkey = A30EBE40AD856D88
#[merge]
# tool = vscode
#[mergetool "vscode"]
# cmd = code --wait $MERGED
#[diff]
# tool = vscode
#[difftool "vscode"]
# cmd = code --wait --diff $LOCAL $REMOTE
# Commit settings
[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
#gpgsign = true
# Enforce SSH
# We commented thus block out coz we use the GitHub CLI's Git Credential
# helper stuff
#[url "git@github.com:"]
# insteadOf = https://github.com/
# pushInsteadOf = https://github.com/
[url "git+ssh://ajhalili2006@git.launchpad.net/"]
insteadof = lp:
pushInsteadOf = lp:
[url "git@bitbucket.org:"]
insteadOf = https://bitbucket.org/
[init]
defaultBranch = main
# TODO: Set up aliases for ther Git hosts, like in Launchpad.net
# 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"
ammend = "commit --amend"
stage = "add"
unstage = "restore --staged"
stats = "status"
sdiff = !git diff && git submodule foreach 'git diff'
spush = push --recurse-submodules=on-demand
supdate = submodule update --remote --merge
skipCi = push -o ci.skip
root = rev-parse --show-toplevel
# LFS
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
# pull
[pull]
rebase = true
[push]
recurseSubmodules = check

View File

@ -88,13 +88,20 @@ Host sourceforge
IdentityFile ~/.ssh/launchpad
# hax.co.id
Host write.ajhalili2006.dev
Hostname 91.134.238.133
User ajhalili2006
Port 4830
IdentityFile ~/.ssh/launchpad
# Technically RIP due to nonrenewal #
#Host write.ajhalili2006.dev
# Hostname 91.134.238.133
# User ajhalili2006
# Port 4830
# IdentityFile ~/.ssh/launchpad
Host sandbox.ajhalili2006.dev
Hostname 148.251.50.26
Port 12411
User root
User ajhalili2006
IdentityFile ~/.ssh/launchpad
Host mau-dev-mirrors-haxserver.runners.recaptime.dev
Hostname
User
Port
IdentityFile ~/.ssh/ajhalili2006.recaptime.dev

2
tests/ubuntu/Dockerfile Normal file → Executable file
View File

@ -56,7 +56,7 @@ USER gildedguy
# use sudo so that we don't get sudo usage info on (the first) login
# also I misspelled Gildedguy's name for memes lol
RUN sudo echo "Running 'sudo' for Guildedguy: success
RUN sudo echo "Running 'sudo' for Guildedguy: success"
# configure git-lfs
RUN sudo git lfs install --system