Forked from mandiwise/Sync gh-pages + master branches
Created
February 10, 2020 07:11
-
-
Save Munene84/a36eb3a4bb0c17e6ea4b937c4aac5d1a to your computer and use it in GitHub Desktop.
Revisions
-
mandiwise revised this gist
Oct 27, 2014 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ // Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/ $ git add . $ git status // to see what changes are going to be commited $ git commit -m 'Some descriptive commit message' $ git push origin master $ git checkout gh-pages // go to the gh-pages branch $ git rebase master // bring gh-pages up to date with master $ git push origin gh-pages // commit the changes $ git checkout master // return to the master branch -
mandiwise renamed this gist
Oct 26, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mandiwise created this gist
Oct 26, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ // Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/ git add . git status // to see what changes are going to be commited git commit -m 'Some descriptive commit message' git push origin master git checkout gh-pages // go to the gh-pages branch git rebase master // bring gh-pages up to date with master git push origin gh-pages // commit the changes git checkout master // return to the master branch