Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to store into my other Git hosting account 馃槂
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
phpunit.xml.dist export-ignore | ||
save-code.sh export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |