From 1740fa99fc44272f7958be2848efe34894032969 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 27 Jul 2016 18:49:59 +0100 Subject: [PATCH] Fixup GH Pages deploy instructions These work regardless of whether you already have a gh-pages branch. --- scripts/build.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index e2a9e7b84b8..d92008154db 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -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 {