stevset/scripts/repo2ssh.sh
2022-12-19 02:00:48 -05:00

9 lines
302 B
Bash
Executable file

#this command changes the git repo from HTTPS to SSH so you can use the key instead of typing in your password all the time.
USER=sc-idevops
if [ -n "$1" ]
then
git remote set-url origin git@github.com:$USER/$1.git
git remote -v
else
echo "the first parameter is the name of the github repo"
fi