Open kieranpotts opened 1 year ago
Use git checkout -p|--patch to selectively discard parts of each tracked file.
git checkout -p|--patch
Also consider making the default behaviour of git discard to be to revert all local changes. If no parameters are passed, this could be the default behaviour:
git discard
git checkout .
Use
git checkout -p|--patch
to selectively discard parts of each tracked file.