Forked from mandiwise/Sync gh-pages + master branches
Created
January 13, 2017 04:15
-
-
Save mdtareque/75a3fd0d56d1565b5a496c8240e236cd 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