Add quick script to set the remote to gitea

This commit is contained in:
Salt 2025-01-21 02:31:29 -06:00
parent e362d48c76
commit 770328c432

13
set-remote.sh Executable file
View File

@ -0,0 +1,13 @@
#! /bin/sh
git remote set-url origin git@git.desu.ltd:salt/dotfiles
echo "Resetting origin back to SSH"
echo "Ensure you've added your ecdsa key to Gitea."
echo "If you need those:"
echo " https://git.desu.ltd/user/settings/keys"
for file in ~/.ssh/*.pub; do
if ! [ -e "$file" ]; then
echo "No pubkeys found -- gen one!"
fi
echo "Public key $file:"
cat "$file"
done