Skip to content

Commit 466c17a

Browse files
committed
[save-code] Update script
1 parent 9bae356 commit 466c17a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

save-code.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
# Save a git project to a specific repo (e.g. github, bitbucket, ...)
44
function save-project-to-repo() {
5+
branch="master"
6+
57
git remote rm origin
68
git remote add origin $1
7-
git push
9+
git push origin $branch
810
}
911

1012
declare readonly gitRemotes=(
1113
git@gitlab.com:pH-7/github-readme-generator-cli.git
12-
git@bitbucket.org:pH_7/random-passcode-password.git
13-
git@github.com:pH-7/php-github-readme-generator-seo-friendly.git
14+
git@bitbucket.org:pH_7/php-github-readme-generator-seo-friendly.git
15+
git@github.com:pH-7/github-readme-generator-cli.git
1416
)
1517
for remote in "${gitRemotes[@]}"
1618
do

0 commit comments

Comments
 (0)