3 ms·
git reset --hard can be pretty destructive when applied at the wrong moment. When reverting changes in selected files, my preferred way is to use git checkout s
by rad_gruchalski 7y ago
git reset --hard can be pretty destructive when applied at the wrong moment. When reverting changes in selected files, my preferred way is to use git checkout selectively.
- saila 7y agoAgreed, and there's also git restore now, which might be a bit more intuitive.