From 0546f9026fa2bcce633a7449e52d3a04c40766f0 Mon Sep 17 00:00:00 2001 From: Nana Amfo Date: Tue, 7 Nov 2017 11:11:54 -0600 Subject: [PATCH] fix: use --set-upstream and set remote before pushing --- prerelease.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prerelease.sh b/prerelease.sh index 1fbd2ebc..b847cf67 100644 --- a/prerelease.sh +++ b/prerelease.sh @@ -19,6 +19,8 @@ BRANCH="updateTo${PKG_VER_NEXT}" git checkout -b $BRANCH npm run version -git push $GITHUB_URL_SECURED --follow-tags origin $BRANCH +git remote rm origin +git remote add origin $GITHUB_URL_SECURED +git push --follow-tags --set-upstream origin $BRANCH hub pull-request -b development -m "chore: Merging CHANGELOG and package.json changes" hub pull-request -b master -m "chore: Merging CHANGELOG and package.json changes" \ No newline at end of file