Add changes by hunk

suggest change

You can see what “hunks” of work would be staged for commit using the patch flag:

git add -p

or

git add --patch

This opens an interactive prompt that allows you to look at the diffs and let you decide whether you want to include them or not.

Stage this hunk [y,n,q,a,d,/,s,e,?]?

This makes it easy to catch changes which you do not want to commit.

You can also open this via git add --interactive and selecting p.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents