Git submodules are powerful, but tricky to use.
Book a workshop with me here:
https://philomatics.com/git-workshop/
Or grab my free git cheatsheet:
https://philomatics.com/git-cheatsheet/
Run these commands to add the recommended settings to your global gitconfig:
git config --global push.recurseSubmodules on-demand
git config --global submodule.recurse true
My most useful video yet (interactive rebase)
• git interactive rebase - Undo, Edit & Squa...
My first video on git rebase (without --interactive)
• git rebase - Why, When & How to fix conflicts
My Top 10 git shortcuts:
• My most used git aliases
Fixing merge conflicts:
• Never fear merge conflicts again - git mer...
Video on `git pull --rebase`:
• Never* use git pull
How to change your default editor in git:
• My most used git aliases
Thank You to Micheline Welte for her wonderful help with this video!
Contents:
0:00 - Why git submodules?
0:20 - Cloning submodules
0:48 - git submodule update
1:47 - Making changes to the submodule
4:18 - Switching branches
5:25 - Recommended settings
5:43 - Adding submodules
6:13 - Removing submodules
6:27 - Main takeaway
6:58 - Alternatives to submodules
LEGAL DISCLAIMER
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Everything here is for informational purposes only. All non-licensed clips used for fair use commentary, criticism, and educational purposes. See Hosseinzadeh v. Klein, 276 F.Supp.3d 34 (S.D.N.Y. 2017); Equals Three, LLC v. Jukin Media, Inc., 139 F. Supp. 3d 1094 (C.D. Cal. 2015).eo
On this page of the site you can watch the video online Why everyone hates git submodules with a duration of hours minute second in good quality, which was uploaded by the user Philomatics 05 May 2025, share the link with friends and acquaintances, this video has already been watched 72,795 times on youtube and it was liked by 2.8 thousand viewers. Enjoy your viewing!