首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法将客户端文件夹添加到本地Githb Repo

无法将客户端文件夹添加到本地Githb Repo
EN

Stack Overflow用户
提问于 2020-12-07 17:41:46
回答 1查看 67关注 0票数 0

我正在尝试将React项目中的客户端文件夹提交到本地Git代码库,但一直收到以下错误:

代码语言:javascript
复制
% git add client
warning: adding embedded git repository: client
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint: 
hint:   git submodule add <url> client
hint: 
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint: 
hint:   git rm --cached client
hint: 
hint: See "git help submodule" for more information.

我运行此命令来尝试删除当前的客户端存储库:

代码语言:javascript
复制
User@Users-MacBook-Pro final-9 % git rm --cached -f client
rm 'client'

当我再次尝试git add client时,我在这篇文章的顶部得到了同样的错误信息。

EN

回答 1

Stack Overflow用户

发布于 2021-01-15 18:18:11

在命令行中输入"git add *“之后,删除你的cient文件夹中的.gitignore文件,它会好起来的!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65179283

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档