Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
25 January 2023
Git sub-modules are so useful, yet still so painful to work with.
A recent survey showed that 9 out of 10 people were looking for "How do I remove changes to a git sub-module when doing git bisect" on Google.
(OK, I admit there are no such surveys. Still, it's a very real problem!)
In this episode I'll show how to work with sub-modules, and especially how to cope with changes coming in from sub-modules.
I'll also discuss the issues of switching branches or doing a git bisect when your project contains sub-modules.
0:00 Introduction
1:25 A commit to kdalgorithms
3:13 Kirsi creates MyApplication using a submodule
4:39 kdalgorithms can brew coffee
5:22 Kirsi pulls the changes - but need to explicit get data for the submodule
6:55 Nuno pulls a version and get a weird message
11:01 Understanding the error message
12:18 Jesper add welding under water - git submodule --recurce
15:45 git config --global submodule.recurse true
16:17 bisecting - now you have modified files...
19:58 git config --global push.recurseSubmodules no
22:23 hmm these two settings are super slow
23:47 The key points
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv/tree/master/Qt-Widgets-and-more/git-submodules
All QML tips and tricks videos : https://www.youtube.com/playlist?list=PL6CJYn40gN6jWHP5krsQrVGyYtKh3A3be
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more