gitlab add submodule example

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2020
  • If you have two independent GitLab repositories and you want to link them together, this gitlab submodule add example will show you exactly how to do it. In this example, we have two separate GitLab repos. We clone one, and then we use the git submodule add command to bring in the other. All easy-peasy. Check out this gitlab submodule tutorial to discover how to do it.

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

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

    Thank you so much for this video. I am grateful for your tutorial as it helped me so much in migrating from subversion.
    Thank you once again!

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

      So glad I could of be assistance. You'll love Git once you get used to it. Put the pain of Subversion in the past!

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

    everything i needed and even more. Saved me quite some time. thx alot

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

    Thanks alot for such clear explanation!! you helped me alot!

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

      Thanks so much for the kind words! Git submodules are so cool, but for some reason they always seem intimidating. Once you use them a few times it all makes sense, and you wonder why they seemed so confusing to begin with.

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

    Thanks, man!
    Really helped!

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

      Glad I could be of service!

  • @PUZO37RS
    @PUZO37RS 10 หลายเดือนก่อน

    One question. When i did almost the same steps i’ve noticed that parent project will have modifications after modifying submodule. And the status shows the updates that should be also committed. So in your case, your main project will still have unmanaged modifications in the surface project. Why is that so?

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

    must the submarine module be imported into a child folder of the surface project? Could original submarine folder be located outside surface but later added to surface as a submodule? >

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

      I can't give you a confident answer right off the bat. I'll play around with it and see what I come up with.

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

      @@cameronmcnz Looking again, I think you were correct all along. The 2 projects were separate in gitlab at the start and you did $ git submodule add [submarine-url] from the surface project folder. thx

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

      @@roykressin8229 You had me worried the for a while! Submodules are complicated. It's hard to come up with a scenario on how to use them that isn't overly complicated. Glad you got it to work!