Working with Git Sub-Modules

Опубликовано: 25 Январь 2023
на канале: KDAB
593
22

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/m...

All QML tips and tricks videos :    • QML Tips and Tricks  

All Qt Widgets and more videos:
   • Qt Widgets and more  

About the host:
The video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time.

Every month our newsletter is featuring technical blogs on Qt, C++ and 3D topics: https://www.kdab.com/development-reso...

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrolment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-service...

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/


На этой странице сайта вы можете посмотреть видео онлайн Working with Git Sub-Modules длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь KDAB 25 Январь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 593 раз и оно понравилось 22 зрителям. Приятного просмотра!