Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个新的存储库并将其克隆到我的 PC 上,然后初始化了一个 React Native 应用程序,当我尝试从根文件夹推送我的代码时,它给了我一条错误消息,说我的子文件夹中有另一个 .git,反应本机应用程序。我的子文件夹和根文件夹中有 .git 目录,但是从子文件夹中删除 .git 没有任何区别,从根文件夹中删除 .git 目录会导致 git repo 中的 git repo。谁能帮我?
.git 文件始终是隐藏文件。检查您的隐藏文件是否有任何额外的 .git 文件和其他文件夹。去掉它。