Upload the project in gitHub

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
insert image description here

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

insert image description here

  1. 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

  2. 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)

  3. git add . #(Note that there is a "." after the command. Add the local folder to the local library)
    insert image description here

  4. git commit -m "xxx" #(Submitted to the local library, -m means message, "XXX" is the comment or description for the submission)
    insert image description here

  5. 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)

Guess you like

Origin blog.csdn.net/TotoroChinchilla/article/details/129008597