Hacker News new | past | comments | ask | show | jobs | submit login

I occasionally (less than once a month) work on the rust project. They probably rightfully use submodules to pull in llvm and cargo and other dependencies. However, every time I change branch or rebase, there's some kind if conflict or breakage caused by the submodules.

Just last week I rebased and the cargo submodule was changed to dirty? I didn't touch the folder. I deleted the folder and reran my submodule init/updated dance to no avail.

I had to fix it by going into that folder and running `git restore .` because somehow everything got removed?

So yeah. I don't like submodules. They probably make sense but they are not at all intuitive if they are so fragile like that




Same issue here. I've never tried git subtree though, I'm wondering if people who have can chime in.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: