Linked Questions

31 votes
1 answer
19k views

guys, I just used submodule to organize some Git repos, here's the address: repos I want to move all the submodule into a new directory called repos, for examples, jquery -> repos/jquery. I change ...
shawjia's user avatar
  • 1,737
9 votes
2 answers
5k views

Is there any way to move submodules within your superproject without removing them first and re-adding them ?
rafi's user avatar
  • 1,867
4743 votes
43 answers
2.0m views

How do I remove a Git submodule? Why can't I do git submodule rm module_name?
R. Martinho Fernandes's user avatar
222 votes
24 answers
257k views

Here's part of the contents of my .gitmodules file: [submodule "src/static_management"] path = src/static_management url = git://github.com/eykd/django-static-management.git [...
David Eyk's user avatar
  • 12.7k
248 votes
8 answers
130k views

Is there some easy way to rename a git submodule directory (other than going through the entire motion of deleting it and re-adding it with a new destination name). And while we are at it, why is ...
Lars Tackmann's user avatar
44 votes
3 answers
42k views

I want to add a git submodule with different name like: git submodule add --name foo [email protected]:ironsand/cookbook-foo.git I wanted to create a git submodule directory named foo, but the ...
ironsand's user avatar
  • 15.4k
23 votes
2 answers
21k views

Initially I had the following (simplified) repo structure: MyRepo external1/MySub (git submodule) .gitsubmodules Where $ cat .gitsubmodules [submodule "external1/MySub"] path = external1/...
Jacek M's user avatar
  • 2,428
13 votes
2 answers
3k views

I have the following git structure - git-repo a -- subdirectory 2015 --- git-submodule b -- git-submodule c --- git-submodule d I would like to move the git submodule c to the folder 2015. I know of ...
BartBog's user avatar
  • 1,989
4 votes
2 answers
3k views

I am using submodule to control my plugin in MacVim. When I tried to update the submodule using git update submodule It comes out: fatal: destination path 'bundle/ShowMark' already exists and is not ...
code4j's user avatar
  • 4,756
1 vote
0 answers
565 views

Initial Situation / Goal I have a GIT repository with a submodule let's say under <root>/Modules/SomePath/Example. I want to move this submodule to a new location, let's say <root>/...
derHugo's user avatar
  • 92.6k
1 vote
2 answers
192 views

I'am coding a website which stands on 2 github repositories : WEBSITE.git (2MB or 2%) & AUDIO.git (98MB = 98%). I deploy it as follow : git clone https://github.com/<user>/WEBSITE.git mkdir ...
Hugolpz's user avatar
  • 18.4k
4 votes
0 answers
325 views

I have a repository called "pipelines" where I have a .gitlab-ci.yml file that runs a script to perform a specific task. I use repo mirroring to pull from the "pipelines" repo. The ...
bakadevops's user avatar
0 votes
1 answer
127 views

I have a submodule at the following path: src/level_1/level_2/my_Submodule. In VS Code, I changed the path to: src/level_1/level_2/level_3/my_Submodule. In this case, git gives me an error that the &...
Ahmed Eid's user avatar