How to git submodule tutorial

Поділитися
Вставка
  • Опубліковано 28 жов 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!

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

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

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

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

  • @l.243
    @l.243 2 роки тому

    Thanks for the consistent exhaustive demo.

  • @tolonbaikamalov7520
    @tolonbaikamalov7520 6 місяців тому

    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.

  • @edwinroman30
    @edwinroman30 3 роки тому +4

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

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

  • @BeyondAppearances-0
    @BeyondAppearances-0 Рік тому

    Very very clear and straight explanations ! Thanks a lot !

  • @Zakaros1000
    @Zakaros1000 Рік тому

    Nice videos, very complete and clear and excellent and everything I needed to know to finally used 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

  • @trido3815
    @trido3815 Рік тому

    Awesome instructions. pretty easy to understand.

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

  • @eelitetech7224
    @eelitetech7224 2 роки тому

    Thanks! For support. 👍

  • @arpitfalcon4960
    @arpitfalcon4960 4 роки тому +2

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

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

  • @barbaramckenzie1617
    @barbaramckenzie1617 4 роки тому +1

    Great tutorial on submodules.

  • @k.safonov
    @k.safonov 3 роки тому

    Awesome. Great tutorial! You are a talented teacher!

  • @francescopastore3196
    @francescopastore3196 2 роки тому

    Really clear, thanks a lot for your explaination!

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

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

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

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

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

  • @simpleprogramming4671
    @simpleprogramming4671 2 роки тому

    very clear explanation thanks a lot

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

  • @rajmohans1408
    @rajmohans1408 3 роки тому +1

    good tutorial... nicely explained

    • @cameronmcnz
      @cameronmcnz  3 роки тому

      Thanks so much for the kind words!

  • @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 роки тому

    ❤️

  • @denizliberal
    @denizliberal 3 роки тому +1

    Remove that pic with beer

    • @cameronmcnz
      @cameronmcnz  3 роки тому +2

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

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