Upload the code to the specified library of github from the cmd command line under windows

1. Create a warehouse in your github:
write picture description here
2. Fill in the information of the warehouse:
write picture description here
3. The warehouse is successfully created:
write picture description here
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)
write picture description here
5. Add git add .
write picture description here
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

write picture description here
Then go to step 5

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325648782&siteId=291194637