Note: adding is also used to add modified files to the 'shopping cart'.

 

This adds a file to staging.

git add myfile.html

 

This adds all files to staging at this level and below

git add .     <- add modified and new files

 

git add . -A   <- add modified and new files and deleted files and moved files

 

 

This removes files

git rm -cached myfile.html