仓库里包含仓库
本文最后更新于 7 个月前
当你add的文件夹里面包含了一个git仓库时
你会收到以下警告
You've added another git repository inside your current repository.
Clones of the outer repository will not contain the contents of the
embedded repository and will not know how to obtain it. If you meant to
add a submodule, use: git submodule add src If you added this path by
mistake, you can remove it from the index git rm --cached src See "git
help submodule" for more information. :::
你添加的文件是一个git仓库,这要会导致添加的文件夹不包含文件的内容。 #
解决方法
1 |
|
a solution on the internet
solution : https://stackoverflow.com/questions/56873278/how-to-fix-error-filename-does-not-have-a-commit-checked-out-fatal-adding
仓库里包含仓库
https://jfsas.github.io/2024/09/30/仓库里包含仓库/