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