push local master *into* gh-pages branch on github

前端 未结 4 797
陌清茗
陌清茗 2021-02-01 05:45

I created a simple gh-pages branch on github and in my local repo. I used the auto page generator to create the 5 files it uses: images javascripts stylesheets index.h

4条回答
  •  轮回少年
    2021-02-01 06:38

    From what I understand, you'd have to switch to your local copy of gh-pages. Merge in master, and then push gh-pages

    git checkout gh-pages
    git merge master
    git push origin gh-pages
    

提交回复
热议问题