@echo off echo start git push.... @echo on SET time1=%date:~0,4%-%date:~5,2%-%date:~8,2%0 %time% ECHO current time is:%time1% git add . git commit -m "%time1%" git push origin master @echo off echo gitpush success pause