Why everyone hates git submodules

Publié le: 05 mai 2025
sur la chaîne: Philomatics
72,795
2.8k

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


Sur cette page du site, vous pouvez voir la vidéo en ligne Why everyone hates git submodules durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Philomatics 05 mai 2025, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 72,795 fois et il a aimé 2.8 mille téléspectateurs. Bon visionnage!