So I have a project that is a git repo which contains another git repository. So the structure is this:
/gitProject
/other
/stuff
/anotherGitProject
Currently, I’ve got anotherGitProject set up as a submodule of gitProject. My problem is that I have to deploy anotherGitProject to another part of my hard drive. Since anotherGitProject functions as an add-on, I just copy the contents of anotherGitProject directly into the other project’s directory tree:
/gitProject
/other
/stuff
/anotherGitProject
/otherProject
/(contents of anotherGitProject+otherProject)
My question is: How can I keep track of the changes I make to anotherGitProject within gitProject? This seems really convoluted, but I need to make changes to anotherGitProject on top of otherProject or else this wouldn’t be an issue.
The idea would be to:
anotherGitProjectinotherProject,or even as otherProject (if the content of
anotherGitProjectneeds to be directly withinotherProject, in which case:otherProjectinotherProject.tmpanotherGitProjectasotherProjectotherProject.tmpcontent inotherProjectanotherGitProjectoriginal contentanotherGitProjectinitial repo (the one being a submodule togitProject) a remote pointing tootherProjectThat way, you can fetch/pull from
otherProjectdirectly back inanotherGitProjectIf
anotherGitProjectis, as a plugin, a simple subdirectory ofotherProject, the process is much simpler, since, as I mention in my first point, you can simply cloneanotherGitProjectdirectly in the destination (withinotherProject).The remote step is the same: