3

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?

2
  • 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
    Commented Apr 25, 2016 at 13:25
  • And j u is the quick way to jump to that specific heading from anywhere in the status buffer, FWIW.
    – phils
    Commented Apr 25, 2016 at 14:09

1 Answer 1

6

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 and acknowledge you have read our privacy policy.

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