In magit you just have to go on the hunk or file you want to revert, and use k
to discard a modification. See the relevant documentation at https://magit.vc/manual/1.4/magit/Staging-and-Committing.html for more detail.
With the file open, you can M-x magit-file-checkout
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With