git add command

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

//to add all changed files
git add -A//to add file to the repository
1. git add youFilePath

//if you want to add all file then
2. git add ./*to add all the files in staging area at once*/
git add .git commit -a -m "msg"git add <file> or you can do git add -A to add all files//to add file to the repository
1. git add yourFilePath

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

Also in C++: