4 ms·
One of the most common footgun mistakes I see in Git is people checking out a detached head state without knowing it, doing some work, then trying to push and i
by stevebmark 5y ago
One of the most common footgun mistakes I see in Git is people checking out a detached head state without knowing it, doing some work, then trying to push and immediately going to hell. I like that switch prevents this behavior by default. Also all git installations should come with a default shell prompt update so that it will show you immediately that you've gone into a detached head instead of a branch name. All git onboarding tutorials should include that instruction right after installing git.