如何将 angular 代码从我的本地移动到 github?

How to move angular code from my local to github?

当我尝试提交时显示以下内容,

在分支 gh-pages 未跟踪的文件: node_modules/max-buffer-exceeded-error/

没有添加任何提交但存在未跟踪的文件

您永远不应将 node_modules 提交到您的代码库。如果您还没有,请在项目的根目录中创建一个 .gitignore 文件,然后添加 node_modules/

我想你添加了 node_modules 文件夹。 运行

git rm node_modules

将它们从您的存储库中删除。

完成该操作后,将 node_modules 添加到 .gitignore 文件。

最后提交并推送。