赞
踩
(base) pi@pi:~$ git add demo_ws demo02_ws demo03_ws
warning: adding embedded git repository: demo03_ws/src/urdf01_rviz/meshes/sim_demo
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> demo03_ws/src/urdf01_rviz/meshes/sim_demo
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached demo03_ws/src/urdf01_rviz/meshes/sim_demo
hint:
hint: See "git help submodule" for more information.
出现这个的原因是因为在警告冒号后面的文件夹中也有.git
文件夹,所以会出现这个警告。
很简答,直接根据警告的路径,打开相应的文件夹,按住ctrl + h
显示.git
文件夹,然后把它删掉就可以了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。