git add all files

C++
git add --all
git commit -am "<commit message>"
git push
/*to add all the files in staging area at once*/
git add ./* go to the folder, open the terminal and type this commands */

	git init
    git add .      /* . => it is to add all the files */
    git commit -m "first_commit"
    git remote add origin https://github.com/yourusername/your-repo-name.git
    git pull origin master
    git push origin master
    
/* sometimes we have to force push =>  git push --force origin master  */git commit -a -m "msg"git add <file> or you can do git add -A to add all files
Source

Also in C++: