Skip to content

Instantly share code, notes, and snippets.

@jk2K
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jk2K/71799f719cdbcb1b0192 to your computer and use it in GitHub Desktop.
Save jk2K/71799f719cdbcb1b0192 to your computer and use it in GitHub Desktop.
windows批处理:自动发布代码到github automatically post to github
::方便调试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%
@jk2K
Copy link
Author

jk2K commented May 10, 2014

可以在这个基础上根据实际情况进行修改,放到windows计划任务里,设定时间定时执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment