Upload local code files to Gitee

Gitee is a platform for code hosting and R&D collaboration based on Git. It can host personal or company code and open source projects. There are GitHub abroad and Gitee in China. Since GitHub is often inaccessible, Gitee is recommended.

URL: https://gitee.com/

Let's talk about the steps to submit local code to Gitee:

1. First, you need to install two tools in order:

① git .exe

② TortoiseGit .msi

Baidu cloud download link:

Link: https://pan.baidu.com/s/1mxJJRwefJPXvRqCQRUbUxw 
Extraction code: 7b91 

! Note : The default installation path of git is fine; the user name popped up by TortoiseGit is the user name after registering Gitee (no @ is required), and the email address is the one filled in when registering Gitee

When the right mouse button can display the three functions in the red box below, that is, the code has been installed

 

2. Create a remote warehouse on the Gitee website

 Next set the warehouse name and path

 After creation, the following interface will be displayed, (with warehouse address)

 ! Note: If you want to set the warehouse to be public, after adding the content, click "Management", then set "Open Source", check the commitment, and select the agreement.

3. Place the code or file in a folder on the local computer, right-click "Git Clone"

 Click "OK"

 "Success" appears to indicate that the remote warehouse has been successfully cloned to the local

4. Git's three axes:

4.1 add - add code to local repository

Right click on "TortoiseGit" and click on "Add"

 

 Check the items to upload and click "OK"

4.2 commit - Submit the code to the warehouse

Finished appears above to indicate that it has been completed, and then click "Commit"

Pre-added, fill in the nature of this task, (custom), at the point "Commit"

Success appears to indicate that the second step "Commit" is completed, proceed to the next step

4.3 push - Push this addition operation to the remote warehouse

Click "push"

 Click "OK" again

 If it is the first time to "Push", the following interface will appear

 The username and password are the username and password when registering on the Gitee website ( note : the username does not contain @)

Finally, Success indicates that the upload was successful

 

Guess you like

Origin blog.csdn.net/weixin_44566194/article/details/127166578