git add

You probably already know git add stages changes for commit. In other words, we use git add to collate the changes we want to add to our next commit.

Selectively adding lines to a commit
Selectively adding lines to a commit (with git add -p) is a skill that will reward you heavily in your version control adventures.