1. Create a warehouse in your github:
2. Fill in the information of the warehouse:
3. The warehouse is successfully created:
4. Go to the local, cd into the root directory where you want to upload the content, and initialize the root directory with git git init
(if you encounter LF will be replaced by CRLF error, please refer to the appendix)
5. Add git add .
6. For the following steps, please see the annotation in the screenshot of step 5!
After success, refresh the warehouse to see the uploaded content!
Appendix:
When encountering the error LF will be replaced by CRLF, enter:
git config core.autocrlf true
Then go to step 5