The Git Add command will add files to the current local working repository. This is how files are officially added to the local repository. You can specify one file or multiple files by using wildcards.

Add one file

git add sample.php

Add all files

git add .

Add all PHP files

git add *.php