git command to add all files code example
Example 1: add all files in directory to git
git add --all
git commit -am "<commit message>"
git push
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 all files
git commit -a -m "msg"
Example 5: git add only c files
git add "*.c"
git add "*.h"
git add "*.cpp"
Example 6: git add .
git add <file> or you can do git add -A to add all files