Questions tagged [git-submodules]
Submodules allow you to keep a Git repository as a subdirectory of another Git repository.
git-submodules
3,180
questions
0
votes
0
answers
24
views
Integrating a git project into another
I am working on a large repository nammed A.
However, for a specific folder of A (named cert), I want to adopt a special workflow because the code contained inside of this folder is aimed to be ...
-1
votes
0
answers
24
views
Manage conflicted sub modules in Git
Let’s say I have repo A with sub module B. A is a standalone project:
A –B
Than I create repo C with two sub module A and B:
C-A
C-B
In this case (A is not stand alone) I do not want A to include the ...
-1
votes
0
answers
49
views
How to find the branch where the commit belongs to
I have a main repository which contains some sub-repos:
main repo A - branch "master"
child repo B - branch "master"
child repo C - branch "master"
If I change ...
0
votes
0
answers
16
views
Git-Submodules can ignore some folders?
Okay so I have two repo name X and Y. I have the same structure for both x->internal, product and y->internal, product. I want to use x's product in y and I would like to know what would happen ...
0
votes
1
answer
18
views
How do I speed up Git submodule init + update
I have a repo with a lot of submodules, and it takes a long time to initialise all of them from a fresh checkout.
git submodule update --init
seems to do everything in series, when the operation ...
5
votes
0
answers
274
views
How to fix git repo after replacing directory with submodule
If you replace a subdirectory in a git repo with an identically named submodule, it can break git fetch entirely. Here is a reproducer. In this case the subdirectory contains another submodule which I'...
0
votes
1
answer
44
views
Sharing SQLAlchemy models between flask and non-flask python projects
We have 2 projects - Project_A and Project_B. Project_A does data processing, saves processing results to a database, generates an .sql dump and uploads it to cloud storage. Project_B is a flask app, ...
0
votes
0
answers
26
views
Does nx affected work with git submodules
I'ld like to know if nx affected works with git submodules.
I suspect it relies on git CLI to discover changes, and as such, if the changes happen in a submodule, I am not sure if the change discovery ...
1
vote
0
answers
23
views
git submodule Redirection
Is it possible to configure git to checkout submodules from a different host, say dev.azure.com instead of the url, say github.com, stored in the repo?
I'd like to hit a mirror of the repos instead of ...
1
vote
0
answers
38
views
Is it possible to push git sparse-checkout settings, so every team member has the same settings by default?
I am currently introducing a library from repository "B" to repository "A" as a submodule.
The Repository "B" referred to as a submodule includes additional test code and ...
0
votes
0
answers
18
views
git submodule update fails for private submodules
I'm trying to get a private repo which references numerous private submodules working. I'm using ssh and cannot use https to clone them due to GitHub's new restriction. I have access to all private ...
1
vote
1
answer
49
views
Adding local repo as submodule always resolves to Github
This is such a bizarre thing. I'm trying to add local repo ProjectB as a submodule of ProjectA. I'm very familiar with the process and commands to work with submodules, but trying to run git ...
0
votes
0
answers
39
views
How to skip submodules with `repo forall`?
Many commands in the repo tool do have some submodule support via flags like --fetch-submodules, --submodules... but nothing is mentioned in repo help forall or repo forall --help.
Yet when I run repo ...
0
votes
0
answers
35
views
Put submodule .git folder into working directory
We have a directory tree like this:
.
├── README.md
├── .git
│ ├── modules
│ │ └── code-server-images
│ │ └── code-server
│ │ ├── modules
│ │ │ └── lib
│ │ ...
0
votes
1
answer
50
views
How to discard untracked or modified content in any git submodule?
In a git repository, I seem to have untracked or changed content in a submodule
> git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use &...