Main / Tools / Github submodules
Github submodules download
If you now do a git status in the main repository, you'll see that the submodule is in the list Changes not staged for commit and it has the text (modified content) behind it. This means that the code of the submodule is checked out on a different commit than the main repository is pointing to. 1 Feb Eventually, any interesting software project will come to depend on another project, library, or framework. Git provides submodules to help with. Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate.
A repository that was cloned independently and later added as a submodule or old setups have the submodules git directory inside the submodule instead of embedded into the superprojects git directory. 28 Nov - 3 min - Uploaded by GitKraken In this Git tutorial, learn what submodules are and when you should use them. If you're. 8 Jan In this post, we'll dive deep into Git submodules, starting by making sure they're the right tool for the job, then going through every standard use.
I've spent a little more than a month working with Git now. I can honestly say that while there are many things that I like about Git, there are just as many things. Are you really sure you need to use git submodule for your use case? I would suggest that you consider git subtree instead. From experience. 15 Mar Git Submodules is one of the most terrific but exhausting features in Git. I mean, we all love Git, right? But have you ever tried using Git.