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

<pre lang="html">
git add sample.php

Add all files

<pre lang="html">
git add .

Add all PHP files

<pre lang="html">
git add *.php