DEV Community

Discussion on: 3 Git Commands I Use Every Day

Collapse
 
blagh profile image
Hannele

Similar to your notes on add . vs add -p, I prefer checkout -p as an alternative to reset --hard - you can make sure you're not throwing something away that you missed during the add process. It works exactly the same way as add -p, you can choose to ignore or throw away piece by piece.