You need to register your account name, set a password, and configure your email address in advance
Article organization is based on this blogger
First, in the "+" sign in the upper right corner of github, click New repository (New repository) and fill in the relevant information
Secondly, enter cmd in the address bar of the page of the project you want to upload, and then enter the following commands in sequence
-
git init #Go to the cmd in the file directory to be uploaded to gitee, enter the command initialization, in order to add the .git file to the uploaded folder
-
git remote add origin https://...get #(origin is the alias of the remote warehouse, and the following link is the address of [clone/download] on gitee, in order to establish a connection between the local folder and gitee)
-
git add . #(Note that there is a "." after the command. Add the local folder to the local library)
-
git commit -m "xxx" #(Submitted to the local library, -m means message, "XXX" is the comment or description for the submission)
-
git push origin master #(You can view it on gitee after success) (Forcibly submit the code to gitee with the command git push -u origin master -f, if you can use git push origin master, do not use the mandatory upload command)