You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
575 B

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