How to change the remote repository for a git submodule?

后端 未结 7 1362
醉梦人生
醉梦人生 2020-11-22 10:45

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

7条回答
  •  悲&欢浪女
    2020-11-22 11:22

    Just edit your .git/config file. For example; if you have a "common" submodule you can do this in the super-module:

    git config submodule.common.url /data/my_local_common
    

提交回复
热议问题