No video

Git Tutorial: All About Submodules

  Рет қаралды 98,687

GitKraken

GitKraken

Күн бұрын

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!
Download GitKraken free at bit.ly/2ExnR6K
#git #gitkraken #gitclient #gitgui #learngit #programming #github #bitbucket #gitlab

Пікірлер: 36
@mathiasfantoni2458
@mathiasfantoni2458 3 жыл бұрын
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! :-)
@mathiasfantoni2458
@mathiasfantoni2458 3 жыл бұрын
Doesn't look like you have a video titled "All About Subtrees"? - New video suggestion. :-)
@AzlanIkram-me1em
@AzlanIkram-me1em 2 ай бұрын
a very simplified explaination. Thanks
@theskyfoxx2065
@theskyfoxx2065 Жыл бұрын
Best explanation without fuffing about
@CameronChardukian
@CameronChardukian 3 жыл бұрын
This was a great introduction to the concept of submodules in Git. Thanks for sharing!
@mahmud-ahsan
@mahmud-ahsan Жыл бұрын
Thank you, easy to understand and elegant!
@AmnesiaPhotography
@AmnesiaPhotography 2 жыл бұрын
This was great, thank you!
@Gulzt
@Gulzt 6 жыл бұрын
Short and informative, thx!
@akshararaj8471
@akshararaj8471 3 жыл бұрын
Thank you so much! That was exactly the piece of information I needed :)
@iAyanPahwa
@iAyanPahwa 6 жыл бұрын
Great tutorial, I am using submodules all the time, so made a video and blogged too :) Thanks for tutorial.
@ricardoamendoeira3800
@ricardoamendoeira3800 7 жыл бұрын
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?
@ss4adam
@ss4adam 2 жыл бұрын
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?
@GitKraken
@GitKraken 2 жыл бұрын
The owners of "repo A" would fork "repo B" into "repo C" and then update the submodule to point to "repo C" instead of "repo B". Then the owners of "repo A/C" can push any changes they want.
@ss4adam
@ss4adam 2 жыл бұрын
​@@GitKraken Thank you for the reply. At that point, if the organization owning "repo A" only needed to use "repo B" (or C) as a subcomponent of "repo A" and not for that organization's other repos, I'm guessing that a subtree may be easier to maintain everything in one place. I know this is getting into the design decision territory, but it sounds like a subtree would usually be better for cases where unapproved changes to a dependency repo may be required (unless you are willing to go through the overhead of forking and maintaining that fork). I'm thinking of which cases minimize repo maintenance and reduce training time for onboarding new developers when you only have guaranteed control over "repo A" with the option to fork other repos if you're willing to pay the maintenance cost.
@AgnisNeZvers
@AgnisNeZvers 3 жыл бұрын
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?
@alexanderenchevich1737
@alexanderenchevich1737 6 жыл бұрын
All about submodules? "All"?? Really? No explanation of syncing, pushing your changes. No git commands. No examples. This is not "all". This is "blah".
7 жыл бұрын
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
@lalaithan
@lalaithan 6 жыл бұрын
Great explanation and handy tool.
@NaturalBornCamper
@NaturalBornCamper 5 жыл бұрын
What about when the submodule repo is the same module where you develop? Headaches..
@Priva_C
@Priva_C 4 жыл бұрын
Headache is an understatement....
@TightyWhities94
@TightyWhities94 3 жыл бұрын
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?
@cruepprich
@cruepprich 3 жыл бұрын
Very well explained. thx
@mikaflower4514
@mikaflower4514 4 жыл бұрын
Thanks for the information
@villager2556
@villager2556 7 жыл бұрын
Thanks for the information! Didn't even know about that :D
@user-uh2cr9so8l
@user-uh2cr9so8l 3 жыл бұрын
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?
@ShampooWow
@ShampooWow 7 жыл бұрын
Awesome video! I like it
@DataJuggler
@DataJuggler 5 жыл бұрын
This will not work for me because the sub modules are my own code and I need both to be updated.
@gi_ba8539
@gi_ba8539 6 жыл бұрын
Thank you
@jpbefx
@jpbefx 2 жыл бұрын
I'm too new. I did not understand any of this. LOL.
@RichardBronosky
@RichardBronosky 2 жыл бұрын
3:00 That's really NOT all that there is. You never address how to handle your changes to files in a submodule.
@HighEndDigitalArchitect
@HighEndDigitalArchitect 5 жыл бұрын
Blah but gives some intro :D
@SpookHam
@SpookHam 2 жыл бұрын
Cool video explaining the concept but it is NOT a TUTORIAL.
@SF-zm2py
@SF-zm2py 4 жыл бұрын
This video didn't include any information on the command 'git submodule' nor its features - nor did it show anything about how it works using git's GUI (though personally I don't use that, so I wouldn't know if it has that feature available). That'll be a thumbs down from me.
@GitKraken
@GitKraken 4 жыл бұрын
👋🏼Thanks for taking the time to comment. This video is meant to discuss the submodule conceptually, which is why it does not cover any commands. However, I'll make a note of this for future video topics 📝
@SF-zm2py
@SF-zm2py 4 жыл бұрын
@@GitKraken Thank you for taking this into consideration.
@ShampooWow
@ShampooWow 7 жыл бұрын
Awesome video! I like it
032 Introduction to Git Subtrees
20:43
Dan Gitschooldude
Рет қаралды 39 М.
An Improved Workflow for Submodules - Git Merge 2022
29:39
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 3,4 МЛН
wow so cute 🥰
00:20
dednahype
Рет қаралды 14 МЛН
Harley Quinn's revenge plan!!!#Harley Quinn #joker
00:59
Harley Quinn with the Joker
Рет қаралды 24 МЛН
Git vs. GitHub: What's the difference?
10:06
IBM Technology
Рет қаралды 388 М.
Neovim and Git: SOLVED
8:03
typecraft
Рет қаралды 66 М.
Git Tutorial: What is a Git Repository?
2:04
GitKraken
Рет қаралды 27 М.
git rebase - Why, When & How to fix conflicts
9:45
Philomatics
Рет қаралды 42 М.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1 МЛН
How to git submodule tutorial
24:59
Cameron McKenzie
Рет қаралды 48 М.
Git Submodules Tutorial | For Beginners
14:52
Redhwan Nacef
Рет қаралды 148 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,1 МЛН
Git rebase is not that scary
21:44
Hitesh Choudhary
Рет қаралды 19 М.
Git Tutorial: Fixing Common Mistakes and Undoing Bad Commits
21:31
Corey Schafer
Рет қаралды 382 М.
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 3,4 МЛН