2 ms·
> Before doing so, I want to merge in the recent changes from the remote master, so I do the familiar git pull. It complained about some files that would be ove
by cheald 15y ago
> Before doing so, I want to merge in the recent changes from the remote master, so I do the familiar git pull. It complained about some files that would be overwritten by the merge, so I saved a backup of my changes, then reverted my changes in those specific files, and proceeded.
Yikes. git stash / git stash apply. Pulling into a dirty working tree is asking for trouble.
git losing data is Very Very Bad (and massive kudos to the author for tracking down the bug rather than just bitching about it), but if you're following a proper git workflow (pull to clean working trees, save often), you shouldn't ever be in a position to trigger this bug. That's not an excuse for git to break like that, but the reason that it was likely never seen in the 16k Linux commits is that it's not the "right" way to do things.