zhaoyatao.com
github notes
// automatically commit
// create new .txt file, and copy these commands in it:
@echo off
ECHO GIT ADD .
git add .
@echo,
ECHO GIT COMMIT
git commit -m "Auto-committed on %date%"
@echo,
ECHO GIT PUSH
git push
@echo,
PAUSE
// rename the file
push.bat
// if you have multiple repository:
@echo off
for /d %%i in (%cd%\*) do (
echo "%%i"
cd "%%i"
echo ----------
echo git status
git status
echo ----------
echo git init
git init
echo ----------
echo git add .
git add .
echo ----------
echo git commit -m "auto-committed on %date%"
git commit -m "auto-committed on %date%"
echo ----------
echo git push
git push
echo ----------
echo ----------
echo ----------
echo ----------
echo ----------
)
cd ..
pause
// rename the file
git.bat