Linked Questions

3 votes
2 answers
8k views

Is it possible to only checkout a single branch as a submodule WITHOUT the overhead of the whole repository in my main repositories working directory? (And really only download the files of that ...
Danny Raufeisen's user avatar
9 votes
1 answer
3k views

I'm setting up a new Java project on GitHub, and I'll have some Apache Commons libraries as dependencies. What are the best practices to establish that my project needs those jar files? Should I ...
bruno's user avatar
  • 2,283
5 votes
1 answer
5k views

I've been investigating moving from SVN to Git so that we can make use of Gitlab. One thing I'm not sure about though; Can we point multiple projects in Gitlab at a single repository? The ...
Jon Cage's user avatar
  • 37.8k
4 votes
1 answer
4k views

I have the following git repositories Vector Random String String relies on Vector, and adds it as a submodule. Vector submodules Random. Random has no dependencies. Module: Random Module: Vector ...
Hatefiend's user avatar
  • 3,626
2 votes
2 answers
2k views

Since a while (v1.8.2), git submodule allow us to track a specific branch: git submodule add -b <tracked_branch> <added_sobmodule> That's pretty useful in a use case where you use meta-...
jvtrudel's user avatar
  • 1,365
2 votes
4 answers
2k views

After I git submodule update it always checks out the same commit. for example 34561. I do git checkout master for submodule and then git submodule sync. Then it points to the latest commit a2344. ...
lapots's user avatar
  • 13.5k
3 votes
1 answer
5k views

We have the main git repository and one single git submodule. For this question, the main repository does only have a master branch, and the submodule does have two branches - X and Y. Let's say ...
keyboard's user avatar
  • 2,395
1 vote
2 answers
4k views

I have two submodules in my main repository, both linked to two another remote repositories. When I enter the 1st submodule I am getting a message "HEAD detached at xxxxxxxx" - which is fine, cause ...
Larry The Blackbird's user avatar
2 votes
1 answer
2k views

I have made a ROS workspace and inside a package. I did catkin_make and everything is working well. I would like to give this package (or should I give the entire workspace?) to another person. I am ...
KansaiRobot's user avatar
  • 10.6k
0 votes
2 answers
3k views

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 ...
Charlie Parker's user avatar
3 votes
1 answer
3k views

My parent project has a couple of submodules added to it. For deployment purposes, I want to checkout a specific branch eg master, staging, etc in each submodule and pull the latest commit of this ...
Pankaj Singhal's user avatar
4 votes
1 answer
881 views

I know the support for git submodules is limited in JGit, but still was wondering how can I achieve this: git submodule foreach git checkout <branchName> and similar commands using JGit. Or ...
yogytes's user avatar
  • 53
1 vote
1 answer
3k views

Hard to put in a single sentence, but here is the situation. I am developing a golang package, my intention is for it to be go-gettable. The core of the package provides some "central" ...
Jairo Lozano's user avatar
  • 4,591
3 votes
3 answers
641 views

I need to automate the following step: git clone A && cd A && (git clone B; git clone C) I cannot use submodules. I cannot use a git wrapper (already existent or by writing some ...
Andrea Scarpino's user avatar
4 votes
1 answer
893 views

Sometimes I forget to push a git submodule. Is there a way to show which git submodules are ahead of origin, that have not been pushed?
adrelanos's user avatar
  • 1,623

15 30 50 per page
1 2 3
4
5
10