git submodule functionality with sibling?
I have a project consisting of a library and various applications:
All of the applications link against foolib, a static library.
I would like git commit on foo to record the SHA1 ID of where foolib was at, and also git status on foo to report if there are uncommitted changes in foolib.
However I do not want to move foolib to having a copy of it as a subdirectory of every application. As well as being bloaty, this would lose the ability to try out some changes to foolib in multiple applications without committing the changes.
I have tried making a .gitmodules file that points to ../foolib but it seems to be completely ignored by git status. I also tried making foolib a softlink inside foo, but git seemed to treat the softlink as a file instead of following the link.
Is what I want possible, or do you have any alternative workflow solutions?
On my public repository, the structure is the same, and each application (and foolib) has been cloned individually from the public.
I want to checkout a specific past commit of a git repository, let's say its hash is 'a1bc2def3': git checkout a1bc2def3 The git repository makes heavy use of submodules. As their latest version is i
Is it possible for a git submodule to be made of several other git submodules, and the super git repo to fetch the contents for each submodule? I have tried to do this using the obvious/naive approach
A recent change in Git changed the way the .git directory is handled when using submodules. Instead of having one .git per submodule, everything is now in the root level .git directory (the one corr
I have two git identities, one is a personal one and the other is for my employer. My work project uses a submodule and although I can clone the main repo fine, I am not able to update the submodule.
I'm having an issue with creating a submodule in my project. If I create the submodule directly in the repository root, everything works fine. If the submodule is any deeper, the repository does not g
This question already has an answer here: Git commit to common submodule (master branch) 1 answer I have, in my naivety, set up a git submodule and treated it like a Subversion external - i.e.
I'm about to start a new project, versioned with Git. As with every new project, one of the first steps is usually to take all dependencies together. I usually use git submodules, so that I can update
I have a parent (git) project with a submodule (git). However, when I update the submodule in the parent/develop branch, the parent/master branch also contains the updated submodule files... So while
Is there a robust way to do a recursive depth-first git submodule foreach command? I am using the foreach --recursive command which does the job, except it is breadth-first. This is a problem because
I have a project with lots of submodules for some specific reason. I just want to know which branches exist for each submodule. I know that I could initialize each submodule with git submodule update
Working on an iOS App I'm using an static library integrated as a submodule. No problem, but when I want to step into a method of this submodule while debugging the debugger just step over that method
I get the following error when I try adding a submodule to my repository: fatal: pathspec 'submodule' did not match any files I had some issues with my submodules so I had to remove them all (remove
i need something like git submodules, but the submodule have to be a directory of another project, rather than the entire project. For example The Submodule has: somedir files dirs someotherdir files
What am I doing wrong here? $ git submodule foreach git pull # fails $ cd Submodules/MBProgressHUD/ $ git diff $ git checkout master $ git pull $ cd .. $ cd .. $ git submodule foreach git pull # fails
On a fresh git repo, after adding a submodule and changing to the submodule directory most git commands fail when run within the submodule with the error: fatal: index file open failed: Not a director
After I check out a tag and do git status, it shows me: # modified: submodules/bcg729 (new commits) # modified: submodules/belle-sip (new commits) # modified: submodules/externals/ffmpeg (new commits)
I have a git repo and I want to add a submodule to it. Problem is, the submodule exists as a folder inside another repo. Can I add only that folder as a submodule?
I'm working on storing my dot files in Git, and I've run into a bit of a snag. I want to include a sparse checkout of part of the Git repository (contrib/completion/*.bash) as a submodule. I can get t
I have a Git super project with many submodules. I'd like to be able to go through the submodules and run git status so that I can quickly see which branch each submodule is on and whether there are u
I am fairly new to Git and trying my best to find some documentation on this problem to no avail. Here's my command: MyUser@MyPlace /e/SourceControl/EventStore (master) $ git submodule add https://git
guys, I just used submodule to organize some Git repos, here's the address: repos I want to move all the submodule into a new directory called repos, for examples, jquery -> repos/jquery. I change
As far as I know, the generally accepted practice of adding third party code like d3 is to add it as a git submodule. This reduces the size of the main repo, but I would imagine having d3 (for example
This question already has an answer here: How do I move an existing git submodule within a git repository? 10 answers Is there any way to move submodules within your superproject without removi
I have a repository with two submodules that I want to convert into a single project. Many answers involve scripts, and some seem to be overcomplicated. [submodule site] path = wp-content/themes/sit
I have moved subdirectory in separate repository and then included it as submodule. Now I want to rebase another branch on top of that change. israfel:proj almad$ git rebase -i origin/master error: co
In case of a submodule conflict (i.e. when the two commits to merge contain different changes of the referenced commit), how can I easily set the submodule to theirs commit? In case of files, I woul
I read much about how awful the git submodule is supposed to be, but I am not sure if that is just the groaning of people who feel it limits or if it has serious issues (especially concerning my use c
I want to keep my Vim plugins up-to-date with git by using github repos as submodules with the help of pathogen. Everything is well except pathogen itself. For example, I have a repository in ~/.vim,
I have added a submodule and checked in this submodule fully, I have then checked in my master project. Now my team mate who had checked out the master project before i added a submodule only gets an
I'm having difficulty merging from my master branch to a separate branch I've been developing on in quite sometime. Doing a straight forward merge I get the following: shell$ git merge master fatal:
I have a super-module Research that includes a submodule Simulator. When I clone Simulator repository, and do git log, I get this ~/Simulator$ git log commit abcd... Date: Feb 1....... ........ W
I have a git repo with another repo as a submodule. The submodule is only used in this project. I commited change in the subrepo but the parent repo still references an older revision (Subproject comm
I just pulled https://github.com/kolanos/kohana-universe and now I'm trying to update all the modules running: git submodule update --init --recursive Some of the repos are wrong or not existent anym
We use GIT to manage our project. Each project has a core (like a framework from who we'll built the project) So each project has at least 2 remotes branches: 1 repository for that core framework.
This is my submodule redmine_dashboard config file: Submodule config file: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true worktree = /Users/daniel/redmine/vend
I'm trying to add a git submodule to my project, specifically ShareKit. My project is a git repo, and when I try to type git submodule add git://github.com/ShareKit/ShareKit.git Submodules/ShareKit i
I'm using the git superproject pattern in a large project which is deployed by a Teamcity build agent which does not have a repository account, however the repository is set up to allow anonymous clon
I'm new to git. I want to use this code: https://github.com/TouchCode/TouchJSON/tree/feature/ARC But, when I install it using git on my local machine $ git submodule add git://github.com/TouchCode/Tou
How should I set up a git submodule to prevent a detached head? When I check out my project, it has a submodule and the submodule also has a submodule. Now I want someone else to be able to checkout t
I'm working a project under git revision control that is not my project, but I have r/w access to it. So, I can change what is under revision control in regards to the .gitmodules file, but risk commi
In Jetbrains products, like IntelliJ and RubyMine, you can hit F4 in the diff window of a git diff to jump to to the current edit. Is there any functionality in Magit for emacs to go directly to a dif
I have a git repository that has several submodules in it. How do I list the names of all the submodules after git submodule init has been run? The git submodule foreach command could echo the names o
How do I remove a Git submodule? By the way, is there a reason I can't simply do git submodule rm whatever ?
I'm trying to get just a folder from an external github repo to use in my project. I want my project setup to be like this: -my_project -submodule -code.py -MY_README -.git And I have the remote repo
If you add a submodule in git, afaik it points to a certain commit in that submodule. Is there any way to see which commit it's actually pointing at? Without actually checking out the submodule.
I have a Jenkins install that has been working solid for quite a while. Recently it had a problem where one git repository would timeout when pulling submodules. I started looking for a solution and f
I've cloned a git submodule of one of my libraries into a project I'm working on. The thing is that, after cloning, I need to change some lines in the cloned submodule, but I don't want to push those
We are using submodules and we are new to git. We often see merge conflicts for the submodules themselves, no files are conflicted, just the submodule. There are multiple versions listed in the output
I'm logged in as user A on my machine, but my repo is accessible through username B on the server that I pull from. The .gitmodules file has url = ssh://domain.com/abc/def.git. How can I configure git
My project repo includes Wordpress as a git submodule. When deploying via Capistrano 3, the submodule directory is barren. project --wordpress --images I am using git and :deploy_via, :remote_cache H