yangruihan / blog

个人博客|Personal Blog
17 stars 2 forks source link

[Git] 如何将 Submodule 更新为 https 协议 #59

Open yangruihan opened 1 year ago

yangruihan commented 1 year ago

如何将 Submodule 更新为 https 协议

  1. .gitmodules文件中的 url 改为 https,如:
[submodule "vendor/engines/fat_free_crm"]
    path = vendor/engines/fat_free_crm
    url = https://github.com/fatfreecrm/fat_free_crm.git
  1. 执行git submodule sync更新 .git 配置

再初始化 submodule 就ok了

参考链接:https://stackoverflow.com/questions/11410017/git-submodule-update-over-https/30885128#30885128