I have a VSTS project with a git repo. The repo has some submodules that are also required as part of the software projects development.
Is there a way to create submodules inside the same VSTS project? The other option would be to split the develop... more
TL;DR: I want a submodule to ignore some files, but I want those files tracked by the parent project
This is for a Unity project. I want to add a bunch of code and assets I frequently used into a submodule, so I can easily share it betwee... more
I have a project main that contains a submodule foo. For this particular project, I would like to make a small change to foo that only applies to this particular project main.
| + bar.c
+ foo/ # My... more
I'm working on a "modular Java application", it has around 60 independent modules, all obviously "buildable" on their own.
I'm trying to understand what can be the best approach to structure this type of application under GIT.
I'll explain better m... more
I was looking at this explanation on the use of Submodules within GIT (also, in my case, I am using Gitlab to store code and not github).
I was reviewing instructions mentioned here:
LINK 1: Working With Submodules
I was looking at this item as wel... more
I'm trying to add a submodule to an existing project. I followed the instructions at How to set up a git project to use an external repo submodule?, but the directory structure is wrong. I am aiming for a "it just works" so users are not hassled.
I want to create a parent git repo inside which there will be multiple git repos, but I do not want parent git repo to track all commits of sub repos. Commit history can be placed in individual sub repos. I just want that When I pull from parent repo... more
I am having issues working with git submodules. I want to know a clean way of doing the following.
I want to fork a git repository which has submodules and then I want to create my own branch for each of the submodule and work on that. Can anyone t... more
We've recently added a submodule to our git repository. There's one person who's in charge of dealing with the submodule, so most of the developers don't normally have to concern themselves with the submodule versions, changes and updates.
It turns... more
In my project I want to manage 3 repositories:
The reason I'm not using only one PARENT repository that contains CHILD1+CHILD2 is that CHILD1\2 can be used in other projects also.
In a specific stage I want to tag all 3 reposi... more
Is there an equivalent command to this that always returns the absolute path?
git rev-parse --git-path hooks
When I'm in a submodule, I get an absolute path, but when I'm in the root repository, I get
I am attempting to write a script that initializes my git hooks differently whether my git repo is a submodule or just a regular repository. It currently looks like this:
# Get to root directory of client repository
if [[ ":$PATH:" != *":.git/module... more
I am interested in forking and contributing to a public repository. Problem is, I wish to only update and retrieves updates for a single subdirectory in the public repository.
Fork the public repository
Clone the ... more
git-svn seems to not support submodules as some questions/answers like this one show.
My intention now is not to let git-svn handle submodules (e.g. by treating them as externals) but to just not crash.
Is there a way today which lets me add submod... more
I got a git repository with several submodules and got horrible performance on my Windows 10 build 15063, while on my Linux Mint 18 Sarah everything is fast as the speed light.
Both on Windows and Linux using the Smartgit client, where I can do chec... more
I have a git repository that has a submodule. This git repository is mirrored in a separate environment as well. However, the submodule git repository is not mirrored. The two environments can't talk to each other. For the purpose of explaining the p... more
I have a big project containing multiple Git submodules. A main project uses a collection of different libraries and some libraries use libraries themself. All libraries are useable in a standonlone fashion, so they all need a submodule containing th... more
How can I do the reverse of git submodule absorbgitdirs? I.e. move a submodule's .git information out of superproject/.git/modules/<module> and back to the superproject/path/to/<module>/.git directory?
I still want <module> to be ... more
SmartGit is explicitly using the submodule update strategy no. How can I overwrite it to use the strategy on-demand?
Executed command by SmartGit:
git.exe fetch --progress --prune --recurse-submodules=no origin
I tried to overwrite the fetch comm... more
To populate a repository's submodules, one typically invokes:
git submodule init
git submodule update
In this usage, git submodule init seems to do only one thing: populate .git/config with information that is already in .gitmodules.
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 the remote repository and the submodule have the ... more
Is it possible to make a git submodule that contains only a few files from the working tree of the main project I'm working on?
Say my current directory structure looks like:
I want... more
We want to use the same build system across multiple projects. I have a working brunch configuration file that I want to put in a git submodule, so that that submodule can be referenced in multiple projects and changes are easily propagated (less fra... more
What I want to achieve is whenever I use git checkout on my main repository for example:
git checkout my-branch
my submodules will follow my-branch instead of a detached head.
Is it possible, and if yes, how?
I have a submodule on a development branch that isn't present on other branches. Everytime I switch branches I get a message like this:
warning: unable to rmdir master/images/development/fakeapi: Directory not empty
When I look in the directory th... more
I have a git repository with 3 submodules, like this:
foo/ # main repository
bar1/ # submodule1
bar2/ # submodule2
bar3/ # submodule3
I've added the submodules directly after executing git init in the main repository:
git submodule add ... more
I have a Unity project in a git repo hosted on VSTS with submodules, I've integrated it the git repo with Unity cloud build.
When Cloud Build tires to do a build it seems to go fine checking everything out until it reaches the modules, it hangs on t... more
I have a submodule in my git repository and my directory structure is like,
-- submodule @5855
I have deployed my code on AWS by using autodeploy service.
Now, on server I have code in the parent-directory but submo... more
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 because when you clone a projet that include submodule... more
I have a git repo which has another one as a submodule dependency. In the root of my project (where the .git, .gitsubmodules etc. are) I called
git submodule update
This failed with the following message:
Fetched in submodule path 'src/framewo... more
I have a parent project with the following .gitmodules file
path = src/redux
url = firstname.lastname@example.org:username/sub-package.git
branch = master
Here are the steps I'm using to clone the parent project to ensure I hav... more
How do we check out a git commit including submodules as they were at that time?
One reason why we might want this is to look at a previous version of the main program for which we need to rebuild it with the submodules in the version that was used ... more
I currently update a website by pushing the git repository to a remote. The remote then has a post-receive hook which does
GIT_WORK_TREE=/var/www/html/ git checkout -f
I recently added a submodule in my repository from a different project. I would... more