Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magit revert single file

Tags:

git

emacs

magit

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.