win_create.bat 435 B

12345678910111213141516171819202122
  1. @echo off
  2. SET SOME_VAR="first.txt"
  3. DEL /S "%SOME_VAR%" || echo "file not found"
  4. SET SOME_VAR="second.txt"
  5. DEL /S "%SOME_VAR%" || echo "file not found"
  6. CALL :_ex
  7. EXIT /B %ERRORLEVEL%
  8. :_ex
  9. echo >"first.txt"
  10. git add .
  11. git commit -m "First commit"
  12. echo "one">>first.txt
  13. git commit -am "Added one"
  14. echo "two">>first.txt
  15. git commit -am "Added two"
  16. git push -u origin master
  17. git reset --hard HEAD~1
  18. echo "A B C D F G">second.txt
  19. EXIT /B 0