The Micromaterial soon to be known as: Snub-Modules

All credit for the amazing title “Snub Modules” goes to Peter West.

Having created (and learned quite a bit from) the how to update a submodule micromaterial, I figured I’d go ahead and also learn how to “un-submodule” a submodule.

Essentially, if you ever want to stop tracking a submodule and just have it be part of the main repo, you need to go through a few steps.

Having gone through all of those in the course of creating this exercise, I definitely understand submodules a bit more than I used to, so big win there!

I haven’t really had to do much with submodules, but it’s something that (like reflog/rebase) can seem a bit daunting until you get practical experience just running through the commands a bunch.

There are indeed a number of tutorials out there for working with every conceivable git command, but I’ve found that running through them in a terminal myself can help consolidate the knowledge, and having concrete steps to follow (along with expected output) can be a nice scaffold to learning something you’ve never done before.

So that’s what I did, and if you’d like to do the same, check out the repo and snub some modules!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s