Skip to content

Commit 1740fa9

Browse files
committed
Fixup GH Pages deploy instructions
These work regardless of whether you already have a gh-pages branch.
1 parent f97b1bb commit 1740fa9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/build.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ webpack(config).run(function(err, stats) {
3232
console.log('You can now deploy it to ' + homepagePath + '.');
3333
console.log('For example, if you use GitHub Pages:');
3434
console.log();
35+
console.log(' git commit -am "Save local changes"');
3536
console.log(' git checkout -B gh-pages');
3637
console.log(' git add -f build');
3738
console.log(' git commit -am "Rebuild website"');
38-
console.log(' git push origin :gh-pages');
39-
console.log(' git subtree push --prefix build origin gh-pages');
39+
console.log(' git filter-branch -f --prune-empty --subdirectory-filter build');
40+
console.log(' git push -f origin gh-pages');
4041
console.log(' git checkout -');
4142
console.log();
4243
} else {

0 commit comments

Comments
 (0)