Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 589 Bytes

2020-04-17_fix_github-pages-rejection-of-new-pushes.md

File metadata and controls

15 lines (12 loc) · 589 Bytes
title createdAt
Fix gh-pages rejection of new pushes
2020-04-17 23:10:44 UTC

Fix gh-pages rejection of new pushes

https://stackoverflow.com/questions/52087783/git-push-to-gh-pages-updates-were-rejected

git checkout master # you can avoid this line if you are in master...
git subtree split --prefix build_production -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