git-submodules Questions

5

Solved

Skimming through the SubModule tutorial, I created a submodule out of the boto project. Then, I discovered that I actually need only a subset of this project - specifically, the boto folder. I wou...
Jeaninejeanlouis asked 14/3, 2011 at 19:34

8

Solved

In my project (which uses git), I need to use a library, which is still in progress. I decided to create a submodule for that library, because I want to update from time to time its latest version ...
Mcmann asked 6/12, 2016 at 4:28

2

Solved

Let's say I have two git repos. RepoA is a common repo that should be shared among other projects. ReopB is some project that needs to access something in RepoA. RepoA https://.../RepoA /Somethi...
Durrell asked 18/7, 2014 at 19:26

2

I have a large solution (CoreServices) that utilizes a common library (Common). I have another large solution that also utilizes the common library so submodules seemed like the right answer. Most ...
Cloudcapped asked 11/5, 2022 at 14:36

5

I have two ADO repositories named private2 and public2. private2 references public2 as a submodule: I also added a yaml file (vsts-cicd.yml) for build as follows: resources: repositories: - repo...
Cyte asked 20/1, 2022 at 5:22

14

Solved

I have a project with a submodule that is pointing to an invalid commit: the submodule commit remained local and when I try to fetch it from another repo I get: $ git submodule update fatal: refer...
Horowitz asked 28/1, 2010 at 16:3

4

As described in this Question Is it possible for a git submodule to be made of several other git submodules, and the super git repo to fetch the contents for each submodule? The author assumed a ...
Hercule asked 23/1, 2015 at 12:37

3

I've got a repository that stores all of my Vim settings. It uses submodules to pull in plugins with Pathogen (I've looked at other plugin managers, not interested so far). Due to the way MSYSGit h...
Senaidasenalda asked 10/9, 2015 at 15:41

3

Solved

If I have a repository that contains submodules, and I want to make a bundle for sneakernet, how do I make the bundle include the objects needed to update the submodules? For example, let's say I...
Antagonism asked 16/3, 2018 at 13:2

0

I have a Django project that is managed by multiple repositories: main repo - the Django project (incl. manage.py) multiple submodules - each represents an app that is installed in the Django proj...
Radium asked 7/5, 2023 at 13:19

8

Solved

I was trying to remove one sub-module from the project Tried rm -rf .git/modules/submodulePath After that I am having the issue fatal: Not a git repository
Shushubert asked 18/1, 2017 at 11:57

19

Solved

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 cloned...
Bharal asked 15/11, 2010 at 14:38

8

Solved

I'm actually trying to learn how to use git, including the git submodule subcommands. I already set up a server on which I can host, push and pull git repositories by using SSH. I created a main gi...
Expenditure asked 5/1, 2014 at 2:32

6

So, updating all my submodules is done by running git submodule foreach 'git pull origin master' How do I update a specific submodule, located in say bundle/syntastic, without updating any other...
Incorrupt asked 24/5, 2013 at 6:27

2

Solved

I've finally incorporated GitHub and Composer dependency management on my workflow. It's definitely a huge step forward, although I remain very confused about GIT managing the "nested" dependecies....
Gladisgladney asked 8/5, 2014 at 19:19

4

I am using github and I have submodules in my repo. However, I would like to be able to click on the submodules on github to open the submodules repo page. This is my .gitmodules file. [submodule &...
Warder asked 18/4, 2016 at 17:51

22

Solved

How do I clone a git repository so that it also clones its submodules? Running git clone $REPO_URL merely creates empty submodule directories.
Imitation asked 26/9, 2010 at 7:13

4

I have a git repo with a submodule. I would use in post-receive hook file: git --git-dir="$GIT_DIR" --work-tree="$GIT_WORKDIR1" submodule update --init --recursive but I get the following erro...
Nickels asked 13/2, 2018 at 13:9

3

Solved

The "git remote get-url origin" can be used to fetch the location of the remote. How do I do the same for all the submodules?
Klepht asked 29/9, 2020 at 15:18

7

Solved

I have a big Directory ~/.vim and in it I have a subdirectory with many other git repos in it. I want to make a git repo of my ~/.vim directory though, but don't want to go through each of my other...
Erato asked 15/5, 2012 at 17:47

1

I'm trying to manage my C++ project dependencies using CMake and gitsubmodules. I'm following the layout described here: http://foonathan.net/blog/2016/07/07/cmake-dependency-handling.html and it's...
Wilkison asked 15/8, 2017 at 7:59

2

Solved

I've recently added submodule "C" to my repo "B", then checked out a particular commit in submodule C (a previous release of that tool I want to include in B), then committed B and attempted to pus...
Keratosis asked 8/1, 2015 at 16:4

9

Solved

Quite often it is the case that you're writing a project of some kind, and after a while it becomes clear that some component of the project is actually useful as a standalone component (a library,...
Unbosom asked 20/9, 2012 at 13:55

7

Solved

I've two or more projects (let's call them ProjectFoo and ProjectBar) having some common code that I put in a submodule. My understanding is that if I commit changes to a submodule from within Pro...
Lowrie asked 28/8, 2010 at 10:32

1

I made sure that my project was using the hdb branch by doing git submodule --remote meta-dataset. But git submodule does NOT agree with the git branch command when I cd into the repo: (meta_learni...
Mascia asked 3/1, 2023 at 20:41

© 2022 - 2024 — McMap. All rights reserved.