#!/bin/bash
# Save a git project to a specific repo (e.g. github, bitbucket, ...)
function save-project-to-repo() {
    branch="master"
    git remote rm origin
    git remote add origin $1
    git push origin $branch
}
declare readonly gitRemotes=(
    
[email protected]:pH-7/github-readme-generator-cli.git
    
[email protected]:pH_7/php-github-readme-generator-seo-friendly.git
    
[email protected]:pH-7/github-readme-generator-cli.git
)
for remote in "${gitRemotes[@]}"
do
    save-project-to-repo $remote
done