git-submodules Questions
2
Is there a command to set the same branch name for all existing Git Submodules
git submodule add -b develop *
Basically I need a way to recursively set the branch for each module in the .gitmodu...
Bustup asked 13/1, 2015 at 16:36
1
How could I add a local submodule to a projet without actually cloning all the files it contain? I want to avoid duplicating my project's files locally.
I know this kind of thing can be achieved b...
Bremsstrahlung asked 3/3, 2017 at 16:38
2
Solved
I'm working on a git repository with some submodules, which have different revisions on different branches. When I switch branches, I get a:
M path/to/subrepo
Switched to branch 'another-branch'
...
Wynnie asked 11/4, 2019 at 11:10
1
I've spent a considerable amount of time reading through this:
Rename a git submodule
However my case is actually a bit different. I've already renamed/moved the submodules, but I've noticed that ...
Spectrohelioscope asked 10/4, 2019 at 14:34
2
I have a stage in my Jenkinsfile that look like:
stage('Pull Source Code') {
steps {
script {
git branch: "master",
credentialsId: 'myCredentialId',
url: "${GIT_URL}"
}
sh 'git submodule up...
Diorite asked 18/2, 2019 at 23:39
5
Solved
I'm new to Git.
Lets say, I have two git repositories that have the same library added as submodule:
/home/projects/project1/library_XYZ
/home/projects/project2/library_XYZ
Also lets say, I'm wo...
Chairwoman asked 9/12, 2014 at 13:14
4
We have multiple (about 75) maven projects, which we have pushed to Gitlab individually in following manner:
GROUP1 - 4 projects
GROUP2 - 2 projects
GROUP3 - 10 Projects
.
.
GROUP10 - 6 Projects
...
Swipple asked 19/7, 2018 at 6:31
2
Solved
Here's the story:
I have 2 git branches master and develop
I'm currently on develop.
I've long since had the source files of a third party library included in my repo in the directory Vendor/MGTwi...
Spearhead asked 1/10, 2011 at 7:31
5
I really like this command to fetch a repo with submodules:
git clone [email protected]:my_user/my_repo.git --recursive
However, the submodules are all set to "no branch" when they arrive, ...
Egregious asked 24/6, 2011 at 23:47
2
I'm working on a git repo that contains submodules. I've got branches by the same name (like master, development..) in all submodules (including parent module) and they all track their correspondin...
Abdominal asked 15/12, 2017 at 14:41
3
Someone please help me understand submodules in git. I know they are getting a lot of bashing around the internet but since I assume the git developers are smart people there must a reason fo...
Liles asked 11/3, 2014 at 14:3
5
I started a project some months ago and stored everything within a main directory.
In my main directory "Project" there are several subdirectories containing different things:
Project/paper contain...
Trudy asked 28/5, 2009 at 10:18
3
I'm trying to migrate a mercurial repository to git, but the problem is that the mercurial repository has subrepositories (some with branches), and lots of merges and branches itself. I'd like the ...
Headstream asked 28/5, 2015 at 2:8
2
I have a repo of a superproject with number of submodules.
lots of files of both are in Git LFS.
The repo comes with multiple long-lived release branches.
Problem
The complete clone transfers 20...
Pandarus asked 27/1, 2019 at 0:20
0
How to fetch&merge main repository and do the same for all submodules using single command?
I have a repository A which includes submodule B.
Submodule B is often updated and changes are not a...
Demetri asked 2/2, 2019 at 20:49
2
Solved
I have a git submodule inside another module, added via git submodule add <...> (command issued from parent repo), so the .gitmodules file is automatically generated inside the parent repo.
...
Pseudoscope asked 28/1, 2019 at 4:44
3
I'm developing an application that uses git, so I need to test its integration with git. Inside my git repository, I need to have another repository (my_git_repo/tests/another_repo). How can I comm...
Daviddavida asked 28/6, 2015 at 12:5
2
I try to clone a repository with submodules and symlinks.
I'm on Windows 10 and clone onto an NTFS SSD.
I'm cloning with
$git clone -c core.symlinks=true --recurse-submodules -b develop [email...
Locule asked 18/4, 2018 at 7:16
2
Solved
Background
I would like to make a shell function that takes .gitmodules and iterates over each module executing certain commands based off of each submodules properties (e.g. <PATH> or <U...
Uzzi asked 22/12, 2018 at 15:25
3
I use git (TortoiseGit 1.7.5.0) and have a repo with submodules, which are referenced via absolute paths in a manner:
[submodule "common/sub"]
path = common/sub
url = ssh://localhost/lib/common/s...
Reliable asked 1/12, 2011 at 16:16
2
Solved
I'm dissecting a series of changes made to a git repo, some of which involved a submodule. I used git blame to find the relevant commit within the submodule, but is there a simple way to locate whi...
Banbury asked 6/5, 2016 at 4:37
3
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 occa...
Ruthy asked 7/9, 2018 at 14:5
1
Solved
git clone my-new-repo-url
mkdir deps
cd deps
git submodule add -b 6.2.0 https://github.com/leethomason/tinyxml2.git
yields
fatal: 'origin/6.2.0' is not a commit and a branch '6.2.0' cannot be cr...
Wards asked 28/11, 2018 at 17:42
2
My folder structure is as below
rserver-docker contains gitsubmodule of rserver
git submodule(rserver-docker) is as below:
[submodule "rserver"]
path = rserver
url = [email protected]:VIn...
Equipment asked 5/10, 2018 at 12:20
2
I'm trying to build this project at "https://github.com/jonasoreland/runnerup" on Android Studio. But when I'm going to compile it I received this error:
I think it's because I've to update git ...
Bandicoot asked 16/3, 2016 at 9:56
© 2022 - 2024 — McMap. All rights reserved.