版权声明:请注明原处! https://blog.csdn.net/qq_36245035/article/details/82216967
1. 在 GitHub 上创建与本地项目同名的远程仓库
2. 将本地项目 push 到远程
git init
git add .
git cmt -m 'create project'
git remote add origin [email protected]:https:Liangrr/myblog.git
git push -u origin master
3. 将 dist 下的所有文件夹 push 到 gh-pages
npm run build
git checkout -b gh-pages
git add -f dist
git commit -m 'create project'
git subtree push --prefix dist origin gh-pages