Git Tutorial: All About Submodules

preview_player
Показать описание
In this Git tutorial, learn what submodules are and when you should use them.
If you're looking for a good Git GUI client to help make working with Git more intuitive, check out GitKraken!

#git #gitkraken #gitclient #gitgui #learngit #programming #github #bitbucket #gitlab
Рекомендации по теме
Комментарии
Автор

This is the only useful video I've found on submodules so far. Everyone keeps beating around the bush, and I never get anything out of watching those videos. Thanks for being very precise and short in what a submodule is. If you also have a video on subtrees as well, so I can figure out which of the two to use, that'd be brilliant. I'll have a look on your channel! :-)

mathiasfantoni
Автор

a very simplified explaination. Thanks

AzlanIkram-meem
Автор

This was a great introduction to the concept of submodules in Git. Thanks for sharing!

CameronChardukian
Автор

Best explanation without fuffing about

theskyfoxx
Автор

Great tutorial, I am using submodules all the time, so made a video and blogged too :) Thanks for tutorial.

iAyanPahwa
Автор

Thank you so much! That was exactly the piece of information I needed :)

akshararaj
Автор

Thank you, easy to understand and elegant!

mahmud-ahsan
Автор

What happens if the repo I add as a submodule ceases to exist? Does it break horribly or can I just upload my local copy of the submodule to a new repo, change the origin and everything works again?

ricardoamendoeira
Автор

Question: Lets say you own "repo A" and you want a submodule to "repo B" that another group manages. What happens if you need to add something to the submodule (repo B) that the original owner of "repo B" deems unwanted or ridiculous and doesn't want you to even have that commit in an independent branch on their remote since the commit is not deemed useful for the rest of "repo B" userbase. How would you make that submodule commit available to the rest of the users of "repo A" if "repo B"'s owners deny the remote push?

ssadam
Автор

Hi.
What happens if i do change inside submodule a file and i want update the main root

for example:

/proyect main
submodule /proyect @ d4b9dc90

@d4b9dc90 this should will change

pd: zorry my english ..

regards

Автор

Cool explanation but where is the rest of "All About Submodules"?
How do I set it up from scratch? What commands I have to do? Practical example?

AgnisNeZvers
Автор

i don't understand the problem this solves. package managers already solves this problem afaik. is this for the case where there's no package manager?

TightyWhities
Автор

What about when the submodule repo is the same module where you develop? Headaches..

NaturalBornCamper
Автор

If you make changes to the code in the submodule, and then changes are made in the main repo, can you merge the changes from the main into the sub without overwriting your own changes?

uhcrsol
Автор

Thanks for the information! Didn't even know about that :D

villager
Автор

All about submodules? "All"?? Really? No explanation of syncing, pushing your changes. No git commands. No examples. This is not "all". This is "blah".

alexanderenchevich
Автор

This will not work for me because the sub modules are my own code and I need both to be updated.

DataJuggler
Автор

3:00 That's really NOT all that there is. You never address how to handle your changes to files in a submodule.

RichardBronosky
Автор

I'm too new. I did not understand any of this. LOL.

jpbefx
Автор

Cool video explaining the concept but it is NOT a TUTORIAL.

SpookHam