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