git add and remove all files code example
Example 1: git add all files command
/*to add all the files in staging area at once*/
git add .
Example 2: git add all except one file
git add -u
git reset -- main/dontcheckmein.txt
where main/dontcheckmein.txt is the unwanted file.