
Sometimes I write code. Sometimes I run. When I’m doing one of those I’m thinking about the other. I'm Dave Smith https://nitter.cf/t.co/zDBg3UxyFY. @davesmith.dev 🦋
- Tweets1.2K
- Following282
- Followers88
- Likes1.9K

ALT panel 1: julia: "I find submodules confusing and I avoid them if possible, but here's what I've learned from other people's writing* on submodules!" * especially Dmitry Mazin's great "Demystifying Git Submodules post panel 2: submodules let you store another git repository as a subdirectory git submodule add https://github.com/jvns/myrepo ./myrepo Git will store the commit ID and URL of the submodule panel 3: gotcha: cloning a repository doesn't download its submodules To get the submodules, you can run this after cloning the repository: git submodule update --init panel 4: gotcha: git pull and git checkout don't update submodules gotcha: git pull and git checkout don't update submodules To actually update them, you have to run: git submodule update every single time you switch branches or pull panel 5: gotcha: git submodule update puts the submodule in detached HEAD state

























