diff --git a/.gitattributes b/.gitattributes index e4d45d6..32c4199 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,3 +2,4 @@ .gitattributes export-ignore .gitignore export-ignore phpunit.xml.dist export-ignore +save-code.sh export-ignore diff --git a/save-code.sh b/save-code.sh new file mode 100644 index 0000000..00dafd9 --- /dev/null +++ b/save-code.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Save a git project to a specific repo (e.g. github, bitbucket, ...) +function save-project-to-repo() { + git remote rm origin + git remote add origin $1 + git push +} + +declare readonly gitRemotes=( + git remote add origin git@bitbucket.org:pH_7/just-http-status-codes.git + git@gitlab.com:pH-7/just-http-status-codes.git + git@github.com:pH-7/JustHttpStatusCodes.git +) +for remote in "${gitRemotes[@]}" +do + save-project-to-repo $remote +done