git-submodules Questions
2
Solved
I want to pull/update the submodules at the right branch. Doing git submodule update pulls/updates the submodules but it changes to the wrong branch even when the branch I want to ALWAYS use is spe...
Multipurpose asked 3/1, 2023 at 0:49
23
Solved
We're using git submodules to manage a couple of large projects that have dependencies on many other libraries we've developed. Each library is a separate repo brought into the dependent project as...
Genotype asked 23/6, 2009 at 1:5
3
Solved
When a project contains submodules you need to stash/unstash all of them separately. Is there a way to do it using less actions?
This link maybe helpful:
Easy way pull latest of all submodules
I...
Esma asked 10/4, 2015 at 9:15
2
Solved
I'm using git submodules to build and share components between projects. The projects are not in production yet, so at this point submodules are serving them well.
But I'm concerned about maintenan...
Orphism asked 26/6, 2020 at 16:18
5
Solved
This question Is there a way to make git pull automatically update submodules? has an accepted answer of configuring git like so:
git config --global submodule.recurse true
Like one of the comme...
Wellordered asked 28/11, 2018 at 7:49
3
Is there a robust way to do a recursive depth-first git submodule foreach command? I am using the foreach --recursive command which does the job, except it is breadth-first. This is a problem becau...
Toussaint asked 13/2, 2013 at 5:28
4
Solved
Windows user here. I have a C++ git project with a bunch of submodules. The directory structure looks something like this:
source
apps
myapp1
myapp2
externals
submodule1
submodule2
...
subm...
Bevash asked 11/4, 2022 at 7:8
1
Solved
Let’s say that I have a Git repo that contains a submodule:
$ mkdir main-worktree
$ cd main-worktree
$ git init
Initialized empty Git repository in /…/main-worktree/.git/
$ git submodule add https:...
Rubellite asked 24/11, 2022 at 22:3
3
I thought I had it all worked out with this new project and thought that git submodules are the way to to develop and deploy my application.
Set up my git repo (Drupal) and initialized it with the...
Peltast asked 7/4, 2012 at 11:22
17
Solved
I have a project with a Git submodule. It is from an ssh://... URL, and is on commit A. Commit B has been pushed to that URL, and I want the submodule to retrieve the commit, and change to it.
Now...
Student asked 29/4, 2011 at 5:41
3
Recently I started using git submodules in my project.
One of my scripts creates a repo with submodules. I would like to create a function which checks if the submodules were initialized successful...
Spiros asked 17/6, 2018 at 15:15
3
Solved
I have a public repository. In it I want to use a submodule that is private. If i include this submodule into my public repo, will everyone be able to see the contents of that submodule?
Encroach asked 5/6, 2016 at 3:2
3
Solved
In our Git project, we have the following defined in .gitmodules
[submodule "DBPkg"]
path = DBPkg
url = https://[email protected]/MainCo/OurProject/_git/DBPkg
When building the Az...
Isogonic asked 16/10, 2020 at 20:55
23
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
[submodule "external...
Gymnasiarch asked 26/7, 2010 at 16:47
4
Solved
I tried git submodule update --init --recursive
and got following error
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly...
Action asked 30/12, 2017 at 15:50
8
The Question
How to add existing sub repository as a submodule in git?
The Why
I have a private codespace supermodule with submodules scattered randomly:
codespace (git repo, private)
├── Archi...
Ferric asked 25/9, 2015 at 6:22
1
I added a repo as a submodule to my project, but the import statements inside that repo are not resolving when I compile my project
To add the submodules, I used the command
git submodule add <...
Dramatization asked 13/6, 2018 at 18:23
3
I've done a MuPDF binding for Rust and I want to import it as a crate from its git repository.
My Cargo.toml file is something like this:
[package]
name = "package_name"
version = "0.1.0"
authors...
Inseminate asked 11/7, 2018 at 16:17
2
Solved
I see ignore = dirty in a .gitmodule file.
Example:
[submodule "docs/submodules/netvirt"]
path = docs/submodules/netvirt
url = ../netvirt
branch = .
ignore = dirty
The documentation states...
Backed asked 11/1, 2017 at 16:58
3
Solved
We are using submodules and we are new to git.
We often see merge conflicts for the submodules themselves, no files are conflicted, just the submodule. There are multiple versions listed in the ou...
Clavius asked 14/7, 2011 at 21:22
2
Solved
I have a directory in my repo (call it blah) which contains some files that I manualy copied from another repo (repo-blah). One day, I decide to get smart and make this blah directory a submodule, ...
Beryl asked 6/6, 2014 at 21:57
5
I have a repo with 3 submodules. The repo and submodules are all on the same server, which I have ssh access to. The remote URLs are:
ssh://[email protected]/path/to/sub1.git
ssh://[email...
Aspersion asked 12/5, 2015 at 2:29
4
Solved
When I initially added my submodule, I specified a particular branch, as seen in the .gitmodule file:
[submodule "externals/grpc/grpc"]
path = externals/grpc/grpc
url = [email protected]:me...
Logroll asked 26/4, 2015 at 20:11
8
Solved
I have a folder, which was a git repo. It contains some files and .gitmodules file. Now, when I do git init and then git submodule init, the latter command output is nothing. How can I help git to ...
Parisparish asked 29/6, 2012 at 8:50
3
Solved
I have a project that contains many submodules. I want to loop over each submodule with the following command:
git submodule foreach npm install
And I want the script to continue looping over eac...
Multipurpose asked 1/11, 2013 at 14:38
© 2022 - 2024 — McMap. All rights reserved.