diff --git a/push.ps1 b/push.ps1 index 0bbd243..25f93f3 100644 --- a/push.ps1 +++ b/push.ps1 @@ -29,5 +29,5 @@ if ($diffExitCode -eq 1) { throw 'Could not inspect staged changes.' } -git -c http.proxy= -c https.proxy= push --set-upstream origin $branch +git -c http.proxy= -c https.proxy= push origin $branch if ($LASTEXITCODE -ne 0) { throw 'git push failed. Check network access and Git credentials.' } diff --git a/push.sh b/push.sh index 7233f8a..6136024 100755 --- a/push.sh +++ b/push.sh @@ -24,4 +24,4 @@ if ! git diff --cached --quiet; then git commit -m "$COMMIT_MESSAGE" fi -git -c http.proxy= -c https.proxy= push --set-upstream origin "$BRANCH" +git -c http.proxy= -c https.proxy= push origin "$BRANCH"