You now have only the gh-pages branch, and it's the default one that git will use when talking with GitHub.Ĭomments Re #2: (a limited set of Markdown is supported) Third, switch to your gh-pages branch, and delete the local master branch with git branch -d master.įinally, delete the remote master branch with git push origin :master.ĭone. Second, go to GitHub, settings for your repo, and switch “Default Branch” to gh-pages. If you don't, type: git checkout -b gh-pages Here's an easy guide to making that happen.įirst, if you already have a gh-pages branch, make sure it's synced up to master, showing exactly what you want. In other words, you want your GitHub repo to only use the gh-pages branch, not master. So you want to serve your repo from the url, and don't have any reason to separate a "code" and "serve" branch. I do this often enough, and always forget the steps, so having it put down here is useful for me, and maybe for someone else.) (This is a simplified version of the advice on Oli Studholme's blog, cut down to just the parts that I've actually needed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |