git add <pathname>

Stage changes for the next commit

Adds the file (or the directory) <pathname> to the staging area. If <pathname> matches a group of files or a directory, this command will add them all.

Specific examples:

  • git add utils/capitalize.js
  • git add .