From ab002e27c596b6e7e83406098a0f84335ada9f12 Mon Sep 17 00:00:00 2001 From: steveokard Date: Fri, 4 Jun 2021 23:42:09 -0400 Subject: [PATCH] script can be used on any git repo --- scripts/repo2ssh.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/repo2ssh.sh b/scripts/repo2ssh.sh index 573f64a..c1715dc 100755 --- a/scripts/repo2ssh.sh +++ b/scripts/repo2ssh.sh @@ -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