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 lets you look at the diffs and decide whether you want to include them.

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

This makes it easy to catch changes that 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