what are git submodules? (intermediate) anthony explains

  Рет қаралды 5,883

anthonywritescode

anthonywritescode

Күн бұрын

today I talk about git submodules, what they are, how to add / change / delete them, and why you might use them!
playlist: • anthony explains
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/asottile
stream github: github.com/anthonywritescode
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

Пікірлер: 12
@ndepal
@ndepal 3 жыл бұрын
In regards to the ambiguity of "git status" saying "new commits" when in fact you went back in time: If you do "git status --submodule" it will show you which commits are removed/added in the submodule (along with the regular output of "git diff").
@anthonywritescode
@anthonywritescode 3 жыл бұрын
nice tip!
@samibadawi1315
@samibadawi1315 5 ай бұрын
A long overdue thanks!!!
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 2 ай бұрын
your videos are too good, can you please create git specific playlist?
@oliversheridan-methven8906
@oliversheridan-methven8906 3 күн бұрын
Something comparing submodules with subtrees would be nice.
@almasabdrazak5089
@almasabdrazak5089 3 жыл бұрын
always like your explanations. One more use case. We are using protobuffs as a serialization protocol and for it to work you have to have a proto buff files in a repo, so we made one repo and share it between frontend and backend so our proto buffs are always in sync between services
@anthonywritescode
@anthonywritescode 3 жыл бұрын
makes sense! this fits into the "There isn't a package manager for this" use-case -- at a previous company we jammed protos into a pypi package to distribute it!
@rickylim4910
@rickylim4910 3 жыл бұрын
I totally agree with the pain of git submodules. Regardless of its pain, thank you for the explanation :)
@chandanagrawal2399
@chandanagrawal2399 Жыл бұрын
If you make a change in one of the files of 'astpretty' while being inside 'empty' repo, would be be able to push that change to 'remote astpretty'?
@anthonywritescode
@anthonywritescode Жыл бұрын
you generally shouldn't, but yeah you can make changes inside a submodule
@kenpinzky4798
@kenpinzky4798 2 жыл бұрын
Git ! For the totally insane
@anthonywritescode
@anthonywritescode 2 жыл бұрын
true true, submodules are wack
all about xargs ! (beginner - intermediate) anthony explains #200
17:16
anthonywritescode
Рет қаралды 9 М.
Русалка
01:00
История одного вокалиста
Рет қаралды 5 МЛН
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
my python project setup (+ all tools) (intermediate) anthony explains #396
31:38
An Improved Workflow for Submodules - Git Merge 2022
29:39
git is just a key value store? (advanced) anthony explains #497
15:45
anthonywritescode
Рет қаралды 6 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1 МЛН
How to git submodule tutorial
24:59
Cameron McKenzie
Рет қаралды 48 М.
Git Worktree Tutorial | The Most Underrated Git Command?
6:29
Redhwan Nacef
Рет қаралды 13 М.
git rebase - Why, When & How to fix conflicts
9:45
Philomatics
Рет қаралды 32 М.
032 Introduction to Git Subtrees
20:43
Dan Gitschooldude
Рет қаралды 39 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 11 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 2,2 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 14 МЛН