2

The default git behavior is to show only unstaged changes (ignoring stuff that I have staged/git added). How do I do that in Magit?

  • I can't tell whether you're asking to modify the magit status buffer, or to view the standard git diff in a separate buffer. Are you aware that if you TAB on the "unstaged changes" heading in the magit status buffer, it shows you the diff for those specific changes? (which you can then interact with). – phils Apr 25 '16 at 13:25
  • And j u is the quick way to jump to that specific heading from anywhere in the status buffer, FWIW. – phils Apr 25 '16 at 14:09
4

Try M-x magit-diff-unstaged, also available in the diff popup (d u).

If you've globally bound magit-dispatch-popup to some key,then you can use that followed by d u to get to the unstaged diffs without having to go through the status buffer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.