Fatal Error when updating submodule using GIT

后端 未结 8 1059
庸人自扰
庸人自扰 2021-01-30 08:45

I am trying to update the submodules of this git repositary but I keep getting a fatal errors:

[root@iptlock ProdigyView]# git submodule update --recursive
Cloni         


        
8条回答
  •  耶瑟儿~
    2021-01-30 09:21

    If it can help some people:

    I update my .gitmodules

    [submodule "example"]
      path = example
      url = https://github.com/webhat/example.git
    

    Then I update my .git/config too

    [submodule "example"]
      url = https://github.com/webhat/example.git
    

    Like some of you said it before (and I thank you).

    Then I update my .git/modules/example/config

    [remote "origin"]
      fetch = [...]
      url = https://github.com/webhat/example.git
    

    And to finish I do

    git submodule sync
    git submodule init
    git submodule update
    

提交回复
热议问题