Linked Questions
128 questions linked to/from How do I remove a submodule?
20 votes
2 answers
23k views
Cannot remove submodule from Git repo [duplicate]
I have a subproject in a Git repo that I want to remove but am not able to. On the GitHub web interface the submodules are shown with black (or grey) folder icons and are not clickable. There are ...
1 vote
0 answers
110 views
Github submodule: how to delete or exclude submodules? [duplicate]
i want to download all submodules from branch, but some submodules are "dead". Git can't download it, so git can't download and extract other submodules. How i can disable/remove/exclude some ...
1196 votes
15 answers
1.2m views
How can I specify a branch/tag when adding a Git submodule?
How does git submodule add -b work? After adding a submodule with a specific branch, a new cloned repository (after git submodule update --init) will be at a specific commit, not the branch itself (...
740 votes
24 answers
1.2m views
"rm -rf" equivalent for Windows?
I need a way to recursively delete a folder and its children. Is there a prebuilt tool for this, or do I need to write one? DEL /S doesn't delete directories. DELTREE was removed from Windows 2000+
442 votes
20 answers
398k views
No submodule mapping found in .gitmodule for a path that's not a submodule
I have a project that has a submodule at lib/three20 My .gitmodule file looks like this: [submodule "lib/three20"] path = lib/three20 url = git://github.com/facebook/three20.git I have ...
556 votes
12 answers
227k views
How do I move an existing Git submodule within a Git repository?
I would like to change the directory name of a Git submodule in my Git superproject. Lets suppose I have the following entry in my .gitmodules file: [submodule ".emacs.d/vimpulse"] path = .emacs.d/...
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 [...
125 votes
33 answers
269k views
Git - Won't add files?
I'm having issues where I can't add files to my repository. I'm using GIT on windows, in Aptana Studio for some Ruby development. I've managed to push a few files up to GitHub, but then after this, ...
420 votes
4 answers
266k views
Reduce Git repository size
I tried looking for a good tutorial on reducing Git repository sizes, but I didn't find any. How do I reduce my repository size? It's about 10 MB, but Heroku only allows 50 MB and I'm nowhere near ...
248 votes
8 answers
129k 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 ...
115 votes
6 answers
56k views
How do I replace a git submodule with another repo?
How do I replace a git submodule with a different git repo? Specifically, I have a submodule: located at ./ExternalFrameworks/TestFramework that points to a git repo [email protected]:userA/...
105 votes
3 answers
92k views
What is the way to remove a git submodule as of git version 1.9.3?
as of git version 1.9.3 (Apple Git-50) on mac how do i remove a git submodule? I am reading alot of outdated information with many developers telling me they wont work. What is the current way ? ...
82 votes
3 answers
42k views
remove git submodule but keep files
I have a git submodule that I would like to become part of my main project (since I have a lot of project specific code that will go into the submodule). So I'd like to remove the git references to ...
32 votes
6 answers
21k views
Unable to update Git on Ubuntu
I am trying to set up Git on an Ubuntu Machine (I'm using a Samsung Chromebook running Ubuntu 12.04). When I entered "sudo apt-get install git" and it successfully installed Git 1.79 user@ChrUbuntu:...
51 votes
3 answers
33k views
Unable to track files within Git submodules
Problem: to add files at ./shells/smallApps/* to Git at ./.git/ when I do not have the files at ./.git/info/exclude nor at any .gitignore -files. This question is based on this tread where the ...