November 2011
2 posts
Changing The URL Of An Upstream Submodule...
Just a short one today. Say you have a repository that contains a submodule. But, for whatever reason, you want to change the URL that the submodule points to. This could be because that repo moved, or changed it’s name. Or maybe you’ve forked that repository and you want to use your fork as a submodule. All you need to do is to change the URL in the “.gitmodules” file...
Nov 11th
1 note
5 tags
Set Up a Submodule Where Only You Have Write...
Say you want to add a submodule to your repository, and this submodule is a one to which you have push access. It is frequently useful to be able to publish a repository with the submodule URL as pull-only, while keeping the push-pull URL in your own repository. This way, you can make changes to the submodule repository from within the enclosing repository. This is a simple thing to do in Git once...
Nov 9th
32 notes