How to git submodule tutorial

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 73

  • @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!

  • @arpitfalcon4960
    @arpitfalcon4960 4 года назад +2

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

  • @sujan_kumar_mitra
    @sujan_kumar_mitra 3 года назад +1

    Nice tutorial. Thanks a lot, man...

    • @cameronmcnz
      @cameronmcnz  3 года назад

      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!

  • @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 5 месяцев назад +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

  • @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!

  • @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 2 года назад +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  2 года назад

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

  • @edwinroman30
    @edwinroman30 3 года назад +4

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

    • @cameronmcnz
      @cameronmcnz  3 года назад +2

      Glad I could be of service!

  • @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

  • @tolonbaikamalov7520
    @tolonbaikamalov7520 5 месяцев назад

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

  • @Kayzer606
    @Kayzer606 4 года назад +3

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

  • @denizliberal
    @denizliberal 3 года назад +1

    Remove that pic with beer

    • @cameronmcnz
      @cameronmcnz  3 года назад +2

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

  • @amrelsayed4363
    @amrelsayed4363 3 года назад +1

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

  • @MrGSNL
    @MrGSNL 3 года назад +2

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

    • @cameronmcnz
      @cameronmcnz  3 года назад +1

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

  • @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!

  • @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!

  • @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. :)

  • @eelitetech7224
    @eelitetech7224 2 года назад

    Thanks! For support. 👍

  • @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 7 месяцев назад

      @@cameronmcnz

  • @ch4.hayabusa
    @ch4.hayabusa 3 года назад

    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

  • @Zakaros1000
    @Zakaros1000 Год назад

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

  • @rajmohans1408
    @rajmohans1408 3 года назад +1

    good tutorial... nicely explained

    • @cameronmcnz
      @cameronmcnz  3 года назад

      Thanks so much for the kind words!

  • @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.

  • @barbaramckenzie1617
    @barbaramckenzie1617 4 года назад +1

    Great tutorial on submodules.

  • @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.

  • @trido3815
    @trido3815 Год назад

    Awesome instructions. pretty easy to understand.

  • @BeyondAppearances-0
    @BeyondAppearances-0 Год назад

    Very very clear and straight explanations ! Thanks a lot !

  • @l.243
    @l.243 2 года назад

    Thanks for the consistent exhaustive demo.

  • @francescopastore3196
    @francescopastore3196 2 года назад

    Really clear, thanks a lot for your explaination!

  • @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 .'

  • @k.safonov
    @k.safonov 3 года назад

    Awesome. Great tutorial! You are a talented teacher!

  • @simpleprogramming4671
    @simpleprogramming4671 2 года назад

    very clear explanation thanks a lot

  • @joaoaraujo87
    @joaoaraujo87 3 года назад

    Super easy and well explained. Thank you.

  • @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 3 года назад +1

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

    • @cameronmcnz
      @cameronmcnz  3 года назад +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 3 года назад +1

      @@cameronmcnz I only saw a root beer

    • @cameronmcnz
      @cameronmcnz  3 года назад +1

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

    • @kingsleyakpan687
      @kingsleyakpan687 3 года назад +2

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

  • @brunopires7439
    @brunopires7439 3 года назад

    Thank for the video!

  • @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.

  • @goldfish8196
    @goldfish8196 3 года назад

    ❤️

  • @letok2871
    @letok2871 3 года назад

    Does the author's swallowing annoy me alone?

    • @cameronmcnz
      @cameronmcnz  3 года назад

      Sorry. Was fighting that COVID infection. :(

    • @letok2871
      @letok2871 3 года назад

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

    • @cameronmcnz
      @cameronmcnz  3 года назад

      @@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.