Forked from mandiwise/Sync gh-pages + master branches
Last active
August 23, 2020 17:15
-
-
Save coryrs/77b8a18f1cef003b2f11156146e44059 to your computer and use it in GitHub Desktop.
Revisions
-
coryrs revised this gist
Aug 23, 2020 . 1 changed file with 1 addition and 1 deletion.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,6 +1,6 @@ // Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/ $ git add . // add all files in current directory/project $ git status // to see what changes are going to be commited $ git commit -m 'Some descriptive commit message' $ git push origin master -
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