Linked Questions

597 votes
17 answers
288k views

I have a Git repository in a folder called XXX, and I have second Git repository called YYY. I want to import the XXX repository into the YYY repository as a subdirectory named ZZZ and add all XXX's ...
Vijay Patel's user avatar
  • 17.6k
157 votes
6 answers
93k views

What problem does git subtree solve? When and why should I use that feature? I've read that it is used for repository separation. But why would I not just create two independent repositories instead ...
Lernkurve's user avatar
  • 21.9k
82 votes
3 answers
42k views

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 ...
Askbar's user avatar
  • 919
78 votes
1 answer
31k views

I have a project that used to contain a submodule, at path mysubmodule. I installed the latest Git from source (1.8.3-rc2) and ran git submodule deinit mysubmodule. I then deleted the .gitmodules ...
Chris B.'s user avatar
  • 91.2k
36 votes
4 answers
29k views

I have a repository with two submodules that I want to convert into a single project. Many answers involve scripts, and some seem to be overcomplicated. [submodule "site"] path = wp-content/...
Alain Jacomet Forte's user avatar
20 votes
2 answers
23k views

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 ...
Geek's user avatar
  • 8,310
8 votes
4 answers
9k views

I have a directory "ui-kit" that shows up on github as a grey folder. It's not clickable. Here is the whole content of .gitignore: # Fleetwit docs uploads/* .env *.prj *.pui # Logs logs *.log #Node ...
Julien L's user avatar
  • 1,678
12 votes
3 answers
7k views

I have a project that consists of many submodules. However, some of these submodules in hindsight shouldn't be submodules, as they aren't meant or would ever be used in another project and I'm ...
Doug Wollison's user avatar
8 votes
2 answers
4k views

I have a one git project with a file structure like this: Project_A/files... I have another git project with a file structure like this: Project_B/ Project_A/files... files......
dirtytofu's user avatar
  • 245
8 votes
2 answers
5k views

Ok, we have a repository with 3 submodules. Now we want to merge this submodules back into main repository, keeping all history (well, using submodules turned out to be more headache than being ...
Wojtek's user avatar
  • 2,059
7 votes
2 answers
5k views

I noticed that in my directory there were two modules that had been Subprojects of my Git repository. That happened because I moved them all to one Git repo and those modules (directories) had their ...
Andrius's user avatar
  • 21.5k
3 votes
2 answers
5k views

It is easy to clone an entire project plus all its submodules: git clone --recursive [email protected]:homer/powerplant.git However, how do I create a clone that has all these submodules replaced by ...
Anne van Rossum's user avatar
2 votes
3 answers
6k views

Hello I am new to using git and actually putting code there, so yesterday I had made a new repo https://github.com/Ntshembo-Hlongwane1/After-Dark-XI-Online-Store That repo has client folder in it. So ...
Ntshembo's user avatar
0 votes
4 answers
5k views

I apologize if this is a newbie question, but I've been search around and I'm dumbfounded as to why this is. I have some files I'd like to add and commit. I run: git add . I also tried git add -...
Valachio's user avatar
  • 1,175

15 30 50 per page