Advertisement
afsarwebdev

Gitghub master/main branch to gh-pages branch push

May 25th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #github project master branch to gh-pages branch#
  2.  
  3. $ git add .
  4. $ git status // to see what changes are going to be commited
  5. $ git commit -m 'Some descriptive commit message'
  6. $ git push origin master
  7.  
  8. $ git checkout gh-pages // go to the gh-pages branch
  9. $ git rebase master // bring gh-pages up to date with master
  10. $ git push origin gh-pages // commit the changes
  11. $ git checkout master // return to the master branch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement