win_create.bat 356 B

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