Per:https://github.com/angular/angular-cli#deploying-the-app-via-github-pages
我最初运行它并且它不会工作。所以我跑了: git add。 git commit -m"初始部署"
然后跑了: ng github-pages:deploy --user-page --message"可选提交消息"
它经历了许多步骤,我创建了GitHub令牌并为其提供了令牌。然后它询问了我的用户名,然后吐了出来:
Command failed: C:\Windows\system32\cmd.exe /s /c "git clean -f -d"
warning: failed to remove src/app
warning: failed to remove src/assets
There was a permissions error during git file operations, please close any project files/folders and try again. You might also need to return to the master branch manually.
之后,poof,所有文件都消失了,除了那些文件夹。此外,没有任何内容上传到github。
幸运的是,我没有在这个特定的项目上工作,但对我做错了很好奇。