Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. @echo off
  2. echo type "commit" or "update"
  3. cd "curl"
  4.  
  5. set GIT_PATH="C:\Program Files (x86)\Git\bin\git.exe"
  6. set BRANCH = "origin"
  7.  
  8. :P
  9. set ACTION=
  10. set /P ACTION=Action: %=%
  11. if "%ACTION%"=="c" (
  12. %GIT_PATH% add -A
  13. %GIT_PATH% commit -am "Auto-committed on %date%"
  14. %GIT_PATH% pull %BRANCH%
  15. %GIT_PATH% push %BRANCH%
  16. )
  17. if "%ACTION%"=="u" (
  18. %GIT_PATH% pull %BRANCH%
  19. )
  20. if "%ACTION%"=="exit" exit /b
  21. goto P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement