一、提交dist文件夹到ng-pages分支
git subtree push --prefix=dist origin gh-pages
二、提交所有文件到ng-pages分支
text git:(master) git symbolic-ref HEAD refs/heads/gh-pages git add -A git commit -m "..." git push origin gh-pages
三、更新
git subtree push --prefix dist origin gh-pages