Is there a way to use a pre/post commit hook in github to update gh-pages branch from master?

冷暖自知 提交于 2019-12-03 21:37:06
Dan Dascalescu

After reading through a variety of different solutions for handling the sync between master and gh-pages, I ended up adopting an approached favored by JavaScript guru Sindre Sorhus and others:

  1. Make the gh-pages branch the default one on GitHub
  2. Delete the master branch
  3. Use the gh-pages branch as master.

You can see this on GitHub in Sindre's screenful.js repo, or in my project, selection-menu.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!