Git Add
Once files have been modified in your workspace, you’ll need to add these revisions to your staging area. This prepares the files for the version control.
How to Add
When using the git add command, you can either add files individually, or all at once. To add one file, do the following in your terminal:
$ git add [filename]
To add all files in the project, use:
$ git add .
After using this command, you shouldn’t see any additional output in the terminal. If you would like to check the status of your repository and changes, use git status
Using
git addwill add the specified files to the staging area as they are in that moment in time. Further revisions would need to be added again.