Add quick script to set the remote to gitea
This commit is contained in:
parent
e362d48c76
commit
770328c432
13
set-remote.sh
Executable file
13
set-remote.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user