git add specific files code example

Example 1: github command for adding all files

To add all files in Git Staging Area

git add .

Example 2: git add all files command

/*to add all the files in staging area at once*/
git add .

Example 3: git add

//to add a single file
git add <FILE_NAME>

//to add all changed files
git add -A

Example 4: git add .

git add <file> or you can do git add -A to add all files

Example 5: git add

//to add file to the repository
1. git add yourFilePath

//if you want to add all file then
2. git add .