Tag: git submodules

Git – how to track untracked content?

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? […]

How do I pull from a Git repository through an HTTP proxy?

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 […]

Git submodule push

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?

No submodule mapping found in .gitmodule for a path that's not a submodule

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 […]

un-submodule a git submodule

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” …

Git shallow submodules

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?

Git submodules in .gitmodules not initialized

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 […]

Changing remote repository for a git submodule

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 […]

Why are git submodules incompatible with svn externals?

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 […]

git submodule update

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 […]

Git Baby is a git and github fan, let's start git clone.