SHARE
TWEET

Untitled

a guest Oct 13th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top