Skip to content

Commit

Permalink
feat: Add set upstream to push command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jandini committed Jan 26, 2021
1 parent b44f69d commit 95f5e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .dots/.push.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ rem ::: Description:
rem ::: Run git push
rem :::

:: params are not avaialbe for the time being
set PARAMS=%1
if defined DOT_ARG_ALL set PARAMS=--all --follow-tags %2 %3

echo Running git push %PARAMS%
git push

if %ERRORLEVEL% equ 128 git push --set-upstream origin %DOT_GIT_BRANCH%


0 comments on commit 95f5e9e

Please sign in to comment.