Re:Flight rules for Git
by jamescostian on Tuesday October 16, 2018 @01:24PM
(#18231248)
Imagine someone does task X but they do it very poorly and in master. You want to get rid of their last few commits (without a force push).
Most people don't think about doing a hard reset to the last good commit, and then soft resetting to HEAD~. Instead, they just "git checkout $LAST_GOOD_COMMIT". And afterwards they may even continue by working with a detached HEAD
Most people don't think about doing a hard reset to the last good commit, and then soft resetting to HEAD~. Instead, they just "git checkout $LAST_GOOD_COMMIT". And afterwards they may even continue by working with a detached HEAD