git ap

Short for “git add –patch” - Add by patch

Git alias:

ap = add --patch

Example:

git ap

Show each change, and ask if we want to add it in the repo.