Fixup GH Pages deploy instructions

These work regardless of whether you already have a gh-pages branch.
This commit is contained in:
Dan Abramov
2016-07-27 18:49:59 +01:00
parent f97b1bb090
commit 1740fa99fc

View File

@@ -32,11 +32,12 @@ webpack(config).run(function(err, stats) {
console.log('You can now deploy it to ' + homepagePath + '.');
console.log('For example, if you use GitHub Pages:');
console.log();
console.log(' git commit -am "Save local changes"');
console.log(' git checkout -B gh-pages');
console.log(' git add -f build');
console.log(' git commit -am "Rebuild website"');
console.log(' git push origin :gh-pages');
console.log(' git subtree push --prefix build origin gh-pages');
console.log(' git filter-branch -f --prune-empty --subdirectory-filter build');
console.log(' git push -f origin gh-pages');
console.log(' git checkout -');
console.log();
} else {