Managing many git repositories

I highly recommend the multiple repositories tool mr. I used to use a custom shell script as recommended by others for some time, but using mr has the following benefits for me: It’s generic: A conjunction of various version control systems can be used, not only git (e.g. Mercurial, SVN, etc.). It’s fast: mr can … Read more

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

The key is git submodules. Start reading the Submodules chapter of the Git Community Book or of the Users Manual Say you have repository PROJECT1, PROJECT2, and MEDIA… cd /path/to/PROJECT1 git submodule add ssh://path.to.repo/MEDIA git commit -m “Added Media submodule” Repeat on the other repo… Now, the cool thing is, that any time you commit … Read more