A lot of submodules stuff feels... suboptimal for end-users. One that gets me occasionally:
Clone repo with submodules & initialize submodules
Edit file in a submodule and commit/push it
Commit disappears into the ether.
This is because submodules check out a detached head instead of a branch, so committing on top of the head doesn't make the commit the new head of the branch... so next time you pull it disappears.
A lot of submodules stuff feels... suboptimal for end-users. One that gets me occasionally:
This is because submodules check out a detached head instead of a branch, so committing on top of the head doesn't make the commit the new head of the branch... so next time you pull it disappears.
I will NEVER grasp submodules. Every time someone at work brings them up as a suggestion, I run away
Can
git reflog
show the commit hash?