DEV Community

loading...

Discussion on: 3 Git Commands I Use Every Day

Collapse
dohse profile image
dohse

I believe git reset --hard should be avoided. Better remove unwanted changes changes with git checkout --patch and then use --hard's safe brother git reset --keep.