replace git submodule protocol from git to http

后端 未结 2 1828
再見小時候
再見小時候 2021-01-30 22:42

I add a submodule from a git@... URL, to be able to develop in it. Now I want to deploy the app and replace the URL with an git://... one, so it doesn\'t need authentication to

2条回答
  •  借酒劲吻你
    2021-01-30 23:16

    I experienced similar problems, and after googling, I stumbled on this article: Relative URL for Git submodule. I found it's good a practice to follow as there's no need to manually change the .gitsubmodule file no matter who checks out it. It probably applies to your case as well.

提交回复
热议问题