- How to make branch and then change all commits into the newly created branch (this called a merge actually).
- Let say I have branch named
master
and I want to change/merge/move everything from master
into a new branch called gh-pages
(GitHub official branch name to make repository a static website). I just need to type these commands in the root directory of the local repository.
git checkout -b gh-pages
git merge master
git push origin gh-pages
- This command I use to make a static website for my RevealJS presentation.
- StackOverflow links.