无法将 "dist" 文件夹添加到 github 存储库

Cannot add "dist" folder to github repo

当我创建名为 dist 的文件夹并向其中添加任何内容时 github 看不到新添加的内容。

git add . 报告说一切都是最新的。

有什么原因吗?

很可能您在项目的 .gitignore 文件中有一个 dist 条目。

您无法在 git 中添加文件夹。添加例如 à .git忽略文件夹中的文件并提交。查看论坛了解更多详情 ;)