markdown 如果你需要强制推送子树

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如果你需要强制推送子树相关的知识,希望对你有一定的参考价值。

```
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
```

以上是关于markdown 如果你需要强制推送子树的主要内容,如果未能解决你的问题,请参考以下文章