HumanResult3379 · 2022-10-05 08:04
If some codes changed, `git checkout .` can cancel the change.
How to do the same thing with Magit in Doom Emacs?
myme · 2022-10-05 08:36
The fastest way is probably to move the cursor on the "Unstaged changes" headline in the magit status buffer, hit `k` (mnemonic **k**ill) to reset changes and confirm with `y`.
Another way would be do a `magit-reset` (bound to `X` by default), `h` for hard reset, choose the current branch and confirm.
HumanResult3379 · 2022-10-05 08:38
Thank you. It looks the faster way is easy to use.
meatmechdriver · 2022-10-05 19:25
Reset is the way.
Traditional_Hat861 · 2022-10-06 04:43
If you are using doom, pressing ? will show you the available options