How to Use the Git Submodule Update Command by Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ค. 2024
  • The parent Git repository isn't always in sync with the latest git submodule. That's why you need to occasional do a git submodule update.
    The git submodule update command can be a bit confusing though. It doesn't work exactly as one might think. If you don't add the --remote switch, it's not going to update your working directory like you might expect. In this Git remote update example we demonstrate how to update your git submodule the right way.

ความคิดเห็น • 12

  • @heathledger7291
    @heathledger7291 ปีที่แล้ว +3

    Short ,clear and to the point . This is a great video

    • @cameronmcnz
      @cameronmcnz  ปีที่แล้ว +1

      Thanks! I try to keep them simple. Nobody want to hear my views on world politics.

  • @wabdih
    @wabdih 2 ปีที่แล้ว +4

    thanks. I was missing one tiny detail and this video cleared it up

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      Glad I could help! Hopefully you got your answer quickly.

  • @roberthevesi
    @roberthevesi 9 หลายเดือนก่อน +2

    cool explanation, thanks!

    • @cameronmcnz
      @cameronmcnz  9 หลายเดือนก่อน +1

      Glad I could help! Git submodules are fairly complicated, but once you've got it, you've got it!

  • @_marlon
    @_marlon 2 ปีที่แล้ว +2

    Thanks for clarifying that!

  • @douglascavalcante1811
    @douglascavalcante1811 2 ปีที่แล้ว +2

    Thanks, it was much helpful!

  • @ukemewilson4576
    @ukemewilson4576 ปีที่แล้ว +2

    Thank you

  • @intoeleven
    @intoeleven 2 ปีที่แล้ว

    why my git submodule update --remote failed?
    * branch HEAD -> FETCH_HEAD
    fatal: Needed a single revision
    Unable to find current origin/HEAD revision in submodule path 'xxx'

  • @angweteryila1532
    @angweteryila1532 ปีที่แล้ว

    by mare looks you got that module wizard in your blood stream possess me bro