2018/5/9
The most basic operation:
Add files, folders, all files:
git add test.py //Add a single file
git add src //add folder
git add . //add all files
submit:
git commit -m "commit information"
git push origin master
If you accidentally submit files or folders that you do not want to submit, such as the following figure, and submit the .idea and venv folders, what should you do?
There is a way, we can delete it on github without deleting the local folder, we can do the following:
git rm -r --cached .idea # cached will not delete the local .idea
git commit -m " [MODIFY] delete the .idea folder "
git push -u origin master