Permalink
Browse files

Save easily project to other git repos, from anywhere!

  • Loading branch information...
pH-7 committed Jul 5, 2018
1 parent 96658c3 commit 97689444f13619843660e427b1f6a764b7aa6bee
Showing with 17 additions and 0 deletions.
  1. +17 −0 save-project.sh
@@ -0,0 +1,17 @@
#!/bin/bash
function save-project-to-repo() {
git remote rm origin
git remote add origin $1
git push
}
declare readonly gitRemotes=(
git@bitbucket.org:pH_7/ph2date.git
git@gitlab.com:pH-7/ph2date.git
git@github.com:IDzUp/pH2Date.git
)
for remote in "${gitRemotes[@]}"
do
save-project-to-repo $remote
done

0 comments on commit 9768944

Please sign in to comment.