How to do git checkout . with Magit?

If some codes changed, git checkout . can cancel the change.

How to do the same thing with Magit in Doom Emacs?

You can open the Magit status buffer, navigate to the unstaged changes section and press x to discard all changes.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.