How to git submodule tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

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

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

    0:00 intro
    1:25 git submodule add example
    6:45 GitHub submodule add example
    13:42 git submodule init
    16:18 git submodule update
    21:42 git submodule delete
    24:40 outro

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

      I think I need to hire you. Thanks!

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

    Thank you so much for this video. This would have save my life a few years back if only this video is avalable back then.

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

    Amazing! So many tutorials focus on how to do this stuff with GH or GL, but you actually show the real workings of Git itself! That is so much more useful!

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

      When it comes to boring and basic, I'm your man!!! So glad I could help you with your Git submodules!

    • @BenHur872
      @BenHur872 7 หลายเดือนก่อน +1

      @@cameronmcnz Yeah I was trying to learn how to use submodules locally through sublime merge and this back-to-basics approach with the shell really helped me understand what was going on. Appreciate the tutorial

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

    I love the way you start from scratch and then progress on, Thanks for making this video

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

      Thanks for the kind words. Trying to paint a full picture. Git submodules is pretty complicated.

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

    Exactly what I needed!
    I could only find add submodule from remote repo but you covered also the local one.
    Thanks alot!

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

      Glad I could help. Trying to make these tutorials as simple and straight forward as I can!

  • @l.243
    @l.243 2 ปีที่แล้ว

    Thanks for the consistent exhaustive demo.

  • @a.koomson
    @a.koomson 3 ปีที่แล้ว +1

    nice, I followed all the way through, coded along with you. Now I know a lot more about submodules, and I'm not scared of them anymore lol thanks.

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

      I'm still scared of them, and I did the video!

    • @chaiSuttaSafar
      @chaiSuttaSafar 9 หลายเดือนก่อน

      @@cameronmcnz

  • @tolonbaikamalov7520
    @tolonbaikamalov7520 7 หลายเดือนก่อน

    Thank you for the great submodule tutorial.
    This was very helpful!!!

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

    14:51 Clone repository with submodules
    17:33 Clone repository with submodules2

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

      Some points are so important they need to be made twice!

  • @BeyondAppearances-0
    @BeyondAppearances-0 ปีที่แล้ว

    Very very clear and straight explanations ! Thanks a lot !

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

    Awesome instructions. pretty easy to understand.

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

    Thank you very much for your time in making such easily understandable tutorial ! Was very helpful.

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

      Thanks for the kind words!

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

    Thanks Cameron ..for building things up from scratch..really helpful content.

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

      Thanks for the kind words. Trying to keep the video short, but also trying not to leave anything out. It's a tough balance with Git submodules!

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

    Thank, Mr.Cameron , It's exactly that I was search.

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

      Glad I could be of service!

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

    Nice videos, very complete and clear and excellent and everything I needed to know to finally used submodules

  • @k.safonov
    @k.safonov 3 ปีที่แล้ว

    Awesome. Great tutorial! You are a talented teacher!

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

    Thanks! For support. 👍

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

    Great tutorial, really helpful. Thank you so much!!

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

      Glad it was helpful!

  • @francescopastore3196
    @francescopastore3196 3 ปีที่แล้ว

    Really clear, thanks a lot for your explaination!

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

    This was a life saver!! Thank you man!!

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

      So glad I could be of service. Submodules are confusing at start. Then only 'mildly confusing' after you watch the video. :)

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

    Great tutorial on submodules.

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

    Thanks a lot for the tutorial. After this tutorial I am thinking to create a separate repository for the full stack projects I do, ie I have a frontend part repo and backend part repo and I'd be referencing them or submoduling them both here. This way they're separate but linked together. Is that a good use case? or that'd just increase the count of my repos?

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

      I think that's a great use-case! But honestly, you sound a lot smarter about these things than me. You've got the high-level vision. I just know how Git works.

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

      @@cameronmcnz thanks sir. You know your stuff deeply and I'm, being a fresher just exploring everything. I'm hoping to master these stuffs as well :) and become a good teacher/developer like you!

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

      Thanks for the kind words! But I'm no expert. I just know about 5 minutes worth of stuff and know how to stretch that out into a 20 minute video. And I learn it all from people like you!@@ceo_google

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

    Way easier than I thought ngl.

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

      So glad to hear that. Submodules is one of the more difficult Git concepts to master.

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

    Thank you for the great tutorial!
    Q: should we do anything with ".gitmodules" on removing a "submodule" ?
    Thanks again.

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

    Nice video
    Thank you so much
    I have one question hope you will help me
    How to clone submodules if submodules have added creds ?

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

      Thanks for the kind words!

  • @joaoaraujo87
    @joaoaraujo87 3 ปีที่แล้ว

    Super easy and well explained. Thank you.

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

    Nice tutorial. Thanks a lot, man...

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

      Thanks! This is actually a combination of 4 or 5 shorter tutorials on submodules I put together. I thought people would prefer the shorter ones but it seems software developers have a longer attention span than I gave them credit for. I'm so glad it could help!

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

    very clear explanation thanks a lot

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

    Posted from Toronto Zoo, Lol? I was there 2 years ago.. Thanks for the tutorial :)

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

      Waiting for someone to let me out. It's a great zoo!

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

    good tutorial... nicely explained

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

      Thanks so much for the kind words!

  • @brunopires7439
    @brunopires7439 3 ปีที่แล้ว

    Thank for the video!

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

    Thanks a lot ! Saved my day!

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

      Saving people is what I do. I'm like the Jesus of Git Submodules. Thanks for the kind words!

    • @AshutoshMohanty07
      @AshutoshMohanty07 3 ปีที่แล้ว

      @@cameronmcnz :D

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

    lol you look like a cool guy with the beer man. nice tutorial

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

      Shhh! If my employer asks, it's a root beer. Honest to God, I didn't realize I was holding a brew in that photo until after I'd used it a few dozen times. But I guess it's part of the brand now.

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

      @@cameronmcnz I only saw a root beer

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

      @@kingsleyakpan687 I'm more amused by the Tim Hortons coffee maker in the background. It confirms my Canadian cred.

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

      @@cameronmcnz the whole picture is classic. nice belt buckle too, I would have assumed Texas

  • @robertkaskel
    @robertkaskel 4 ปีที่แล้ว

    Thank you, exactly what I needed to know

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

      Thanks so much for the kind words! I try to keep the git tutorials short. This was actually a combination of four shorter tutorials combined to cover what the key aspects of git submodules entails. Trying to keep things short and to the point.

  • @krown5666
    @krown5666 3 ปีที่แล้ว

    Why you do 'git add .' after 'git submodule add'? All the new files are already added into the next commit and this is clearly shown by the git status command you run before each unnecessary 'git add .'

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

    Remove that pic with beer

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

      It's non-alcoholic, gluten-free soda water. Honest.

  • @goldfish8196
    @goldfish8196 4 ปีที่แล้ว

    ❤️

  • @ch4.hayabusa
    @ch4.hayabusa 4 ปีที่แล้ว

    Using this with git's alias configs to do automatic checkouts and mimick gitslave or the various multi-repo management cli's stackoverflow.com/questions/6474847/how-do-i-git-clone-recursive-and-checkout-master-on-all-submodules-in-a-single

  • @letok2871
    @letok2871 4 ปีที่แล้ว

    Does the author's swallowing annoy me alone?

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

      Sorry. Was fighting that COVID infection. :(

    • @letok2871
      @letok2871 4 ปีที่แล้ว

      @@cameronmcnz Oh, I'm sorry. I wish you a quick recovery. The stuff is cool, helped me get my new project straight.

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

      @@letok2871 I'm sorry for the swallowing noises! I'm making lots of changes to how I do the videos, including trying to make them all shorter and more to the point. And fewer lip smacking and swallowing.