kieranpotts / dotfiles

A baseline, extensible UNIX user configuration.
MIT License
1 stars 0 forks source link

Modify Git discard alias to undo partial changes to a file #174

Open kieranpotts opened 1 year ago

kieranpotts commented 1 year ago

Use git checkout -p|--patch to selectively discard parts of each tracked file.

kieranpotts commented 1 year ago

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 checkout .