See below the solid line for my original question. I have a folder in my local directory that is untracked. When I run git status, I get: Changed but not updated: modified: vendor/plugins/open_flash_chart_2 (modified content, untracked content) When I type git add vendor/plugins/open_flash_chart_2 then try git status again, it still says untracked. What’s going on? […]
Note: while the use-case described is about using submodules within a project, the same applies to a normal git clone of a repository over HTTP. I have a project under Git control. I’d like to add a submodule: git submodule add http://github.com/jscruggs/metric_fu.git vendor/plugins/metric_fu But I get … got 1b0313f016d98e556396c91d08127c59722762d0 got 4c42d44a9221209293e5f3eb7e662a1571b09421 got b0d6414e3ca5c2fb4b95b7712c7edbf7d2becac7 error: Unable […]
If I modify a submodule, can I push the commit back to the submodule origin, or would that require a clone? If clone, can I store a clone inside another repository?
I have a project that has a submodule at lib/three20 My .gitmodule file looks like this: [submodule “lib/three20”] path = lib/three20 url = git://github.com/facebook/three20.git I have cloned this in the past without errors, (git submodule init followed by a git submodule update) and it’s been working for a while. I tried to clone this to […]
How do I un-submodule a git submodule (bring all the code back into the core) ? As in how “should” I, as in “Best procedure” …
Is it possible to have shallow submodules? I have a superproject with several submodules, each with a long history, so it gets unnecessarily big dragging all that history. All I have found is this unanswered thread. Should I just hack git-submodule to implement this?
https://github.com/Uni-/shBrushesCollection I opened a GitHub repo and wrote .gitmodules in GitHub web source editor. When I cloned the rpo, I found the submodules in .gitmodules are not being initialized. I think I tried almost all commands possible, including update, init, update –init and so on. Is there a way to use current .gitmodules file, not […]
I’ve created a git repository with a submodule in it. I’m able to tell the submodule itself to change its remote repository path, but I’m not sure how to tell the parent repository how to change the remote repository path for the submodule. I wouldn’t be surprised if I’m somewhat out of luck and have […]
There are lots of webpages out there suggesting hackish ways to make svn externals look like git submodules. I have read some accounts of what the difference is, but this doesn’t seem very fundamental: Git submodules link to a particular commit in another project’s repository, while svn:externals always fetch the latest revision. Why does this […]
I’m not clear on what the following means (from git submodule update docs): …will make the submodules HEAD be detached, unless –rebase or –merge is specified… How does –rebase/–merge change things? My main use case is to have a bunch of central repos, which I will embed via submodules into other repos. I would like […]