Use long command option instead of short and adds comment

Thanks @TomasVotruba
This commit is contained in:
Carles Pina Estany 2020-11-10 08:59:28 +00:00 committed by GitHub
parent 9852c86807
commit edbe7a0efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,4 +48,5 @@ git status
git diff-index --quiet HEAD || git commit --message "$COMMIT_MESSAGE"
echo "Pushing git commit"
git push origin -u "$TARGET_BRANCH"
# --set-upstream: sets de branch when pushing to a remote empty repository
git push origin --set-upstream "$TARGET_BRANCH"