The git add is a command that adds changes in the working directory to the staging area.
Its syntax is as below:
If we want to add only a single file then we need to add the name of the file after git add, example:
git add <file-name>
If we want to add all the new files that we have added then we can apply a single . (dot ) at the end of git add.
git add .
This command will add all the new changes in our local repository
As we can see after executing git add We have again checked our local system repository status using git status command and it has shown us the status of the file that the new file with name is added.