git submodules

(this is bonus comic #2 for "How Git Works" wizardzines.com/zines/git, covering some topics I didn't talk about in the zine!)

Follow

@b0rk If you interrupt the process of cloning a submodule, you can end up with files missing, even if you try to update submodules again! HEAD will point to the correct commit but the staging area and working tree will not. git restore -SW . in the submodule should correct this

@madewokherd this is so cursed oh my god

i'm afraid to ask how long it took you to figure out that git restore command

@jyn I'm pretty sure I've had this happen many times and it confuses me every time.

git restore is pretty intuitive compared to git checkout and git reset - I have no idea how I'd fix it with those, probably just do whatever git status tells me until it's fixed.

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!