Forked from mandiwise/Sync gh-pages + master branches
Created
September 2, 2017 18:07
-
-
Save leahpjoyce/cad251da19f94fc7095bcdab59ab32c4 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