start
- Download Git Bash
- Select the folder you want to upload to GitHub, right-click and select Git Bash Here
Then enter the Git Bash interface
initialization
git init
复制代码
Add all files to the repository
git add .
复制代码
Note: add a space and a "." after add, there is no mistake here!
like this it worked
Connect to remote repository
git remote add origin 仓库地址
复制代码
Commit the added file to the repository
git commit -m "注释语句"
复制代码
"Comment Statements": An introduction to comments on projects/files
It's O98K like this
submit
Finally, go straight to the submission!
git push origin master
复制代码
Submit like this successfully! Check it out on GitHub.