Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
Make sure git knows about your subtree (the subfolder with your site).
git add dist && git commit -m "Initial dist subtree commit"
Use subtree push to send it to the gh-pages branch on GitHub.
git subtree push --prefix dist origin gh-pages
Use below command for update it again
git push origin `git subtree split --prefix dist master`:gh-pages --force
**Note If your folder isn’t called dist, then you’ll need to change that in each of the commands above.