Git · Everyday workflow
git add
Stages a specific change for the next commit. Use git add -p to stage part of a file.
Syntax
git add <path>Example
Example
git add src/app.ts git add --patch
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.