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. This will update the local repository settings in “.git/config”. Git submodule sync - name. Posted on November 11, 2011. Set Up a Submodule Where Only You Have Write Access. For convenience, let’s use a a couple of GitHub.