这是我的.gitmodules
文件:
This is my .gitmodules
file:
[submodule "app/code/EthanYehuda/CronjobManager"]
path = app/code/EthanYehuda/CronjobManager
url = https://company@bitbucket.org/some_user/ethanyehuda_cronjobmanager.git
我需要将URL更改为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