【Git】git submoduleがupdateできない場合の対処法

submodule error BigQuery
BigQuery Fix SQL

git submodule update をした時に下記のエラーにハマったので対処法を記事にする。

$ git submodule update
error: Server does not allow request for unadvertised object <commit id>
Fetched in submodule path 'subtest', but it did not contain <commit id>. Direct fetching of that commit failed.




説明用に今回のサブモジュール名 (リポジトリ名) はsubtestとし、pathはlib/subtestとする。


$ git submodule deinit -f subtest


$ git rm lib/subtest


$ git submodule add -f git@github.com:nanato12/subtest.git lib/subtest





  1. Jimmy より:

    Hi, i think that i saw you visited my website thus i
    came to “return the favor”.I’m attempting to find things
    to enhance my site!I suppose its ok to use some of your ideas!
    Saved as a favorite, I really like your web site!
    It is appropriate time to make a few plans for the future and it’s time to be happy.

    I’ve learn this post and if I may just I desire to recommend you some attention-grabbing things or
    tips. Maybe you can write subsequent articles referring to this article.

    I desire to learn more things approximately it!

  2. www.se7Enbites.com より:

    Wow, this piece of writing is good, my sister is analyzing such things, therefore I am going to tell her.

  3. camera chống trộm wifi より:

    Wonderful blog! Do you have any hints for aspiring writers?
    I’m planning to start my own blog soon but I’m
    a little lost on everything. Would you recommend starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m totally overwhelmed
    .. Any recommendations? Thanks a lot!

  4. nicolialia Pizzeria より:

    Simply want to say your article is as amazing. The clarity on your put up is simply nice and that i could assume you’re an expert in this subject.

    Fine together with your permission let me to grab your RSS feed
    to stay up to date with drawing close post. Thank you a million and please carry on the gratifying work.

  5. Camera an ninh hải nam より:

    Hi, I do believe this is an excellent site. I stumbledupon it
    😉 I may come back yet again since I bookmarked it. Money
    and freedom is the greatest way to change, may you be rich
    and continue to guide other people.

  6. bitcoin より: