Adding/Deleting
- git add file1 file2 ...
-
Add file1, file2, etc. to the project.
- git add dir
-
Add all files under directory dir to the project, including subdirectories.
- git add .
-
Add all files under the current directory to the project, including subdirectories.
- git rm file1 file2 ...
-
Remove file1, file2, etc. from version control and the working tree.
- git rm --cached file1 file2 ...
-
Remove file1, file2, etc. from version control, but not from the working tree.