How do git commit -p
in magit?
Not have this section in man page
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityThe status buffer will show the unstaged changes. Move point to the
changes that you want to stage, and call magit-stage
(s).
If you want to stage a subset of changes within a single hunk, you can
select the lines with the region before calling magit-stage
.
See the "Staging and unstaging" section of the manual for more information.
If you want to stage lines of codes you can do magit-status
, then on one file in the list of unstaged files d, then I select the lines you want to stage, then s.
C-SPC
selection from the status buffer too. Why do you want to go to the diff buffer?
s
to stage the region.