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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Similar to your notes on
add .
vsadd -p
, I prefercheckout -p
as an alternative toreset --hard
- you can make sure you're not throwing something away that you missed during theadd
process. It works exactly the same way asadd -p
, you can choose to ignore or throw away piece by piece.