script can be used on any git repo

This commit is contained in:
Stefen Auris 2021-06-04 23:42:09 -04:00
parent c09b531f83
commit ab002e27c5

View file

@ -1,2 +1,7 @@
#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.
git remote set-url origin git@github.com:steveokard/stevset.git
USER=steveokard
if [ -n "$1" ]
then
git remote set-url origin git@github.com:$USER/$1.git
git remote -v
fi