GIT

packages 的 git失败

发布于 2020-12-04 11:32:38

请教一个问题, 我自己的工程使用git push上传, 总会漏掉 packages 软件包.
现在发现问题原因是 packages 中已经存在.git配置, 相当于 我的工程.git文件路径下包含了其他.git子仓库.

git提示如下:

$ git add .
warning: adding embedded git repository: stm32h743vi-atk-apollo/figures/_packages/SignalLed-latest
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> stm32h743vi-atk-apollo/figures/_packages/SignalLed-latest
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached stm32h743vi-atk-apollo/figures/_packages/SignalLed-latest
hint:
hint: See "git help submodule" for more information.

有什么简便的办法能够把packages 一并上传吗?

查看更多

关注者
0
被浏览
289
yangjie
yangjie 2020-12-04

删除pks文件夹里面的 .git

1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览