git add file
git add adds multiple files, separated by spaces
git add file1 file2 file3
git add many times
git add file1
git add file2
git add file3
Add files in the specified directory
All files in the source directory and subdirectories, all .py files in the home directory
git source/*
git home/*.py
git add ., note that there is a space in front of ".", add all files, or git add --all add all files
git add .
git add --all
git add folder
git add 文件夹
git add 文件夹名
git commit submitted to the repository
The purpose of git add is to submit the modified files from the workspace to the temporary storage area, which can be submitted multiple times, and then the commit operation will submit the files from the temporary storage area to the repository
git commit -m "new commit"