Github: Mirroring gh-pages to master

后端 未结 8 2083
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 09:27

I\'m developing a jQuery plugin that\'s being hosting on GitHub. It has a demo included of which I\'m manually copying and pushing to the branch gh-pages, what

8条回答
  •  北海茫月
    2020-12-12 10:22

    I personally like to wrap this in an alias:

    alias gpogh="git checkout gh-pages && git merge master && git push origin gh-pages && git checkout -"
    

    This mirrors your master to gh-pages, pushes to github, then switches back the previous branch you were working on.

提交回复
热议问题