Uibot 代码怎么备份

Uibot 代码怎么备份 我用git直接上传了文件夹
报错如下

$ git add .
warning: adding embedded git repository: tempgit
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  tempgit
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint:   git rm --cached tempgit
hint:
hint: See "git help submodule" for more information.
warning: in the working copy of '流程块.task', LF will be replaced by CRLF the next time Git touches it


不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^

这个警告的原因是你在当前的 git 仓库中添加了另一个 git 仓库123。这样会导致外部仓库的克隆不包含内部仓库的内容,也不知道如何获取它13。

如果你想要添加一个子模块,你可以使用以下命令123:

git submodule add tempgit
如果你不小心添加了这个路径,你可以用以下命令从索引中删除它12:

git rm --cached tempgit
希望这些信息对你有帮助。

根据报错信息,你似乎在当前的 Git 仓库中添加了另一个 Git 仓库。这可能会导致一些问题,例如克隆外部仓库时无法获取内部仓库的内容。如果你只是想备份 Uibot 代码,可以直接将代码文件夹复制到其他地方,例如备份到云盘或者外部硬盘中。
如果你想使用 Git 进行备份,可以考虑使用 Git 的子模块(submodule)功能。子模块可以将一个 Git 仓库作为另一个 Git 仓库的一部分来管理,这样就可以将 Uibot 作为一个子模块添加到另一个 Git 仓库中,而不会影响到 Uibot 的原始 Git 仓库。
特殊问题特殊对待,不知道行不行!