From 770328c43236e48cd9e8a9368addca72451826bd Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Tue, 21 Jan 2025 02:31:29 -0600 Subject: [PATCH] Add quick script to set the remote to gitea --- set-remote.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 set-remote.sh diff --git a/set-remote.sh b/set-remote.sh new file mode 100755 index 00000000..3b672523 --- /dev/null +++ b/set-remote.sh @@ -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