【发布时间】:2020-01-31 12:00:10
【问题描述】:
这是我的.gitmodules:
[submodule "app/code/EthanYehuda/CronjobManager"]
path = app/code/EthanYehuda/CronjobManager
url = https://company@bitbucket.org/some_user/ethanyehuda_cronjobmanager.git
我需要把网址改成https://github.com/Ethan3600/magento2-CronjobManager.git
所以我只是改变了它:
[submodule "app/code/EthanYehuda/CronjobManager"]
path = app/code/EthanYehuda/CronjobManager
url = https://github.com/Ethan3600/magento2-CronjobManager.git
然后我将文件添加到暂存区并提交:
git add .gitmodules
git commit -m "change url of submodule xy"
然后我执行了git submodule update --init。但是如果我去app/code/EthanYehuda/CronjobManager并显示遥控器,那么我仍然会得到https://company@bitbucket.org/some_user/ethanyehuda_cronjobmanager.git
【问题讨论】:
标签: git git-submodules