3,198 questions
0
votes
0
answers
59
views
Git submodule checkout overwrites .git/modules/<submodule>/config
I have an extremely weird issue with git.
I have never seen it before, none of my coworkers have seen it before, but it's reproducible on my PC
The setup:
we have a main repository, project
we use ...
Best practices
0
votes
2
replies
18
views
What is the most maintenance free approach to importing assorted files into multiple repositories?
My team manages a few dozen repositories; Java, Angular, LDAP, and a number of other "types" of code. To smooth things out between these repos our devops guy wrote some shell scripts that ...
0
votes
0
answers
53
views
Add multiple workspace roots for LSP-Server
We keep our library in a git submodule:
.
└── app
├── submodule_lib
│ └── test
└── test
submodule_lib is a standalone compilation target and has its own tests.
The problem arises when I ...
2
votes
1
answer
73
views
How do I re-use existing submodule checkouts when creating a worktree in Git?
I have a project where I have checked out the main branch, which has 2 submodules: vendor/foo and vendor/bar. If I create a worktree for a feature branch with git worktree add ../feature feature, this ...
Best practices
1
vote
3
replies
92
views
How to update git submodule with latest commit automatically in remote
I have a project named sample which have 2 submodules sampleA and sampleB. I also have another git repo named Example which also refers to same submodule sampleA and sampleB. When I change something ...
1
vote
0
answers
162
views
How can I completely ignore git submodules (but keep them updated)?
I work in a large shared repo that has submodules that I never touch, but that I can't just git-ignore because sometimes they get changes that affect things I do touch. For instance, if I branch off ...
2
votes
1
answer
75
views
git submodule locally (no URL)
I want local test git submodule capability... I have two repositories in my folder. How to add bar repo as submodule for foo.
While my test I got
git submodule add --branch main /tmp/bar the_bar
fatal:...
0
votes
0
answers
61
views
Recursively clone git repo in "prepare" step of Deno Deploy
I'm using Deno Deploy (console) to build a git repository which depends on a git submodule. I can see from the "Prepare" step that it is not cloning the submodule. I've tried to put the ...
0
votes
0
answers
84
views
confused PyCharm project and submodule displaying structure when committing
background
My original project structure is like this:
20240720 # project root
├── tests
├── vnpy # submodule
├── vnpy_clickhouse # submodule
├── vnpy_datafeed # submodule
└...
1
vote
0
answers
148
views
Which remote does git submodule update use when fetching missing commits?
Note: The question is about using git submodule update without the --remote flag.
The documentation for git submodule update says the following:
Update the registered submodules to match what the ...
0
votes
0
answers
70
views
How to update all branches of a repo and its submodules from remote?
I have a Git project structured like this:
main_repo (branches: main, feature1, feature2)
├─ submodule1 (branches: main, feature1, feature2)
└─ submodule2 (branches: main, feature1, feature2)
I ...
0
votes
1
answer
112
views
Merge git submodule into main module, while intermingling the history chronologically
I have a main git repository and it has a submodule. I developed the history in both of them concurrently. Since this is not what submodules are good for, I regret that I set it up this way and I want ...
1
vote
2
answers
136
views
How do you use just one folder from a repository as a submodule?
I have a repository which needs just one folder from another, but it needs to keep updating when the other repo changes, so I plan to use a submodule, but how do I take just the singular folder?
This ...
0
votes
0
answers
73
views
GitHub updating old PR branch
I have about a year old branch with submitted PR.
About 6 month later I tried to pull the latest master in but for some reason didn't finish.
Now I'll try to complete the PR and submit it for ...
1
vote
1
answer
55
views
git submodule relative url with different org
I have a git repo at [email protected]:some-org/some-repo.git.
I have another git repo at [email protected]:other-org/other-repo.git.
I want to add other-repo as a submodule in some-repo.
How do I ...