Gitee registration and use

Personal homepage : Click me to enter the homepage

Column classification: C language, elementary       C language programming————KTV        C language games

Welcome everyone to like, comment, and collect.

Work hard together and go to Dachang together.

 

Table of contents

1.Gitee

1.1What is Gitee?

1.2Gitee registration and creation of remote warehouse

2.Git

3. Write code


        What I mainly bring to you today is the registration and use of Gitee remote warehouse. We often write code, but sometimes we need to write code on different computers. Faced with a situation, we need our Gitee to help us. Yes, in fact Gitee is a very useful tool when we work in the future. I hope that after reading this blog of mine, you can learn how to register Gitee, upload code, create local warehouses, and create remote warehouses.

1.Gitee

1.1What is Gitee?

        Gitee is a code hosting service based on Git. It is an open source code management service platform in China. It is a tool that helps us open source and host code. It is similar to foreign github. Its website is https://gitee.com/ explore

1.2Gitee registration and creation of remote warehouse

We enter the nickname, mobile phone number, verification code, password in turn to register, and our account registration is completed.

 Click mine to enter the add warehouse page

Click to create my warehouse

 Enter the warehouse name, warehouse introduction, and click Create.

 At this time, click on HTTPS and the website for this time is our remote warehouse.

2.Git

        Just creating a remote warehouse is not enough. We need to create a local warehouse. When creating a local warehouse, we need to download two software, namely git and TortoiseGit. The extraction website of these two softwares has an extraction code of 6666 . Please enter the extraction code for Baidu Cloud Disk. Baidu Cloud Disk provides you with network backup, synchronization and sharing services for files. Large space, fast speed, safe and stable, supports education network acceleration, and supports mobile phones. Register to use Baidu Netdisk to enjoy free storage space icon-default.png?t=N7T8https://pan.baidu.com/s/17cfhX4TWUM33wXE70k3sxA

         Note that you must download git first and then download TortoiseGit , because TortoiseGit is a graphical software based on git, which can help us use git better. After we download it, we can create our local warehouse. Open the location where you want to create the local warehouse and right-click

Show more options

Click on Git Clone

        Enter the copied URL of our remote warehouse in the first line, and then click OK. Our local warehouse will be created. If an error occurs, you can copy the error and search for a solution.

3. Write code

        Our local warehouse and remote warehouse have been created. We can enter the moment of writing code. The code is as follows

#include <stdio.h>
int count = 0;
void nums(int num)
{
    int i = 1, sum = 0;
    while (i <= num)
    {
        if (num % i == 0)
            sum += i;
        i++;
    }
    if (sum-num == num)
        count++;
}
int main() {
    int num;
    scanf("%d", &num);
    int i;
    for (i = 1; i <= num; i++)
    {
        nums(i);
    }
    printf("%d", count);
    return 0;
}

        We want to transfer this code to our remote warehouse. At this time, we need to cut this file into our local warehouse. Right-click to display more options.

Then click TortoiseGit, 

Click Add 

Click OK 

 Click Commit

 Write some more information to let us know what this code does, and then click Commit.

Click Push and then click Ok.

when appears

It means that we have successfully passed in, click Close to close it.

Let’s go back to the repository of the Gitee website

 Click in to see our code.

That’s the end of today’s content. I hope you can learn how to use Gitee. Finally, don’t forget to like, comment, and collect. 

Guess you like

Origin blog.csdn.net/Infernal_Puppet/article/details/132574466