win_create.bat 279 B

1234567891011121314151617
  1. @echo off
  2. SET SOME_VAR="main.cpp"
  3. DEL /S "%SOME_VAR%" || echo "file not found"
  4. SET SOME_VAR="main.cpp.swp"
  5. DEL /S "%SOME_VAR%" || echo "file not found"
  6. CALL :_ex
  7. EXIT /B %ERRORLEVEL%
  8. :_ex
  9. echo >"main.cpp"
  10. echo >"main.cpp.swp"
  11. git add .
  12. git commit -m "first commit"
  13. EXIT /B 0