Linked Questions
13 questions linked to/from How do I move an existing Git submodule within a Git repository?
31 votes
1 answer
19k views
How to move Git submodule to sub-directory? [duplicate]
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 ...
9 votes
2 answers
5k views
Moving submodules with Git [duplicate]
Is there any way to move submodules within your superproject without removing them first and re-adding them ?
4743 votes
43 answers
2.0m views
How do I remove a submodule?
How do I remove a Git submodule? Why can't I do git submodule rm module_name?
222 votes
24 answers
257k views
Git will not init/sync/update new submodules
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 [...
248 votes
8 answers
130k views
Rename a git submodule
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 ...
44 votes
3 answers
42k views
`--name` option doesn't work with `git submodule add` command
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 ...
23 votes
2 answers
21k views
After moving git submodule to another directory it fails with error 'git status --porcelain' failed in submodule
Initially I had the following (simplified) repo structure: MyRepo external1/MySub (git submodule) .gitsubmodules Where $ cat .gitsubmodules [submodule "external1/MySub"] path = external1/...
13 votes
2 answers
3k views
Git: moving submodules recursively (nested submodules)
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 ...
4 votes
2 answers
3k views
Unable to update submodule in github due to exist directory
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 ...
1 vote
0 answers
565 views
How to avoid duplicate GIT submodule content after moving to another folder? warning: unable to rmdir 'xxx': Directory not empty
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>/...
1 vote
2 answers
192 views
Using n github repositories for a single github-page website?
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 ...
4 votes
0 answers
325 views
Using Gitmodules with GitLab CI does not Work
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 ...
0 votes
1 answer
127 views
How to tell git that I already changed the path of a submodule?
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 &...