3 ms·
git -f on a shared branch is a surefire way to lose commits. OMFG. It's better not to allow it at all. git revert will undo damage adequately, just not cleanly.
by setpatchaddress 11y ago
git -f on a shared branch is a surefire way to lose commits. OMFG. It's better not to allow it at all. git revert will undo damage adequately, just not cleanly.
- brianwawok 11y agoYou usually won't lose commits with reflog, especially the more users of a repo the more reflogs.. but yes a disaster to go find them again...