1. Simply create your own library on GitHub:




2. After successfully creating the warehouse, look at the picture below and copy the address below. This is the address of the warehouse, and our project will be uploaded here




3. Then download Git, there are many tutorials on the Internet (I believe I can understand them), install and run the CD to enter your own project directory (as shown below) :



4. Enter git init, as shown in the following figure, to generate local git management in the current project directory (you will find a.git folder in the current directory).






The second step:

Git add. This means to add all the files on your project to the repository. If you want to add a specific file, just add. Just change it to this particular file name, and remember to have Spaces between the add and the dot.

Step 3:

Enter git commit -m “First commit” to indicate your comment on the commit. The contents of the double quotes can be changed according to your personal needs.

Step 4:

Git remote add Origin https:// repository URL to associate your repository with github.

Step 5:

Git pull –rebase origin master to synchronize the remote repository with the local repository

Step 6:

Enter Git push -u Origin master to upload the code to the Github repository


5. After executing, if there is no exception, it will wait a few seconds, and then a window will pop up asking you to enter Username and Password

Github login account and password will do.


If you’ve logged in before, skip the steps above and wait for the following image:



This is the upload progress, the process may be a little slow, sometimes you have to wait 10 minutes for big projects, then you can check whether there is any in GitHub warehouse.


The share from his own practice, refer to the article: https://blog.csdn.net/wu2374633583/article/details/79130984