相关疑难解决方法(0)

如何将子模块添加到子目录?

我有一个~/.janus/带有一堆子模块的git repo .我想添加一个子模块~/.janus/snipmate-snippets/snippets/,但是当我git submodule add <git@github.com:...>snipmate-snippets目录中运行时,我收到以下错误消息:

You need to run this command from the toplevel of the working tree.
Run Code Online (Sandbox Code Playgroud)

所以问题是:如何在snipmate-snippets目录中添加子模块?

git git-submodules

282
推荐指数
4
解决办法
20万
查看次数

标签 统计

git ×1

git-submodules ×1