Last active
August 29, 2015 14:01
-
-
Save jk2K/71799f719cdbcb1b0192 to your computer and use it in GitHub Desktop.
windows批处理:自动发布代码到github automatically post to github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::方便调试set cur_path = %cd% | |
e: | |
cd e:\www\CGBT2 | |
git checkout gh-pages | |
php e:\www\newcgbt_release\v2.0\tools\db_dict_generator.php | |
move C:\Users\Lee\Desktop\db_dict.html e:\www\CGBT2 | |
git add db_dict.html | |
git commit -am "generate database dict, %date:~0, 10%" | |
git push origin gh-pages | |
git checkout master | |
::方便调试cd %cur_path% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以在这个基础上根据实际情况进行修改,放到windows计划任务里,设定时间定时执行