Top "Git-submodules" questions

Submodules allow you to keep a Git repository as a subdirectory of another Git repository.

How do I add a submodule to a sub-directory?

I have a git repo in ~/.janus/ with a bunch of submodules in it. I want to add a submodule …

git git-submodules
Git submodule head 'reference is not a tree' error

I have a project with a submodule that is pointing to an invalid commit: the submodule commit remained local and …

git git-submodules
How do I "commit" changes in a git submodule?

I have, in my naivety, set up a git submodule and treated it like a Subversion external - i.e. …

git git-submodules
Update a submodule to the latest commit

I have a project A which is a library and it is used in a project B. Both projects A …

git git-submodules
List submodules in a Git repository

I have a Git repository that has several submodules in it. How do I list the names of all the …

git git-submodules
How do I revert my changes to a git submodule?

I have a git submodule (RestKit) which I have added to my repo. I accidentally changed some files in there …

git git-submodules
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. …

git git-submodules
Issue with adding common code as git submodule: "already exists in the index"

I'm new to git and would appreciate help with adding submodules. I've received two projects sharing some common code. The …

git git-submodules
How do I work with a git repository within another repository?

I have a Git media repository where I'm keeping all of my JavaScript and CSS master files and scripts that …

git git-submodules multiple-repositories
How do I move an existing Git submodule within a Git repository?

I would like to change the directory name of a Git submodule in my Git superproject. Lets suppose I have …

git git-submodules