How my partner and I pair code management on Github

I first learned about the Github operation in detail on the Git tutorial on Liao Xuefeng's official website. The tutorial describes it in great detail and also includes a video.

https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

Later, I found a video GitHub simple tutorial on Youku. It is about team project management from 10 minutes, which is very practical.

https://m.youku.com/video/id_XMzMwNzcwODE0OA==.html?ishttps=1

 

Not long after I started using Github, my friends and I learned from each other and made progress together.

The following is the specific operation process of my partner and I paired code management.

 

A teammate created a project and pulled me into it.

https://github.com/FYrain/hello-world

 

My partner created a new hello partner.txt file in the team project

 

 Initial hello partner.txt

#include <stdio.h>
int main()
{
    printf("hello my partner.\n"); 
        return 0;
}

 

Click Upload Files and upload my modified hello partner.txt.

 

My modified hello partner.txt

#include <stdio.h>
int main()
{
    printf("hello my partner.\n"); 
    printf("hello,my name is linyingjie.\n"); 
        return 0;
}

 

In the files changed in Pull requests, I added a line to hello partner.txt, and my teammates agreed with my modification.

 

 

After that, the teammates also made his modifications, which are displayed in the Pull requests

 

hello partner.txt modified by the small partner

#include <stdio.h>
int main()
{
    printf("hello my partner.\n"); 
    printf("hello,my name is linyingjie.\n");
    printf("hello,my name is fengyuxuan.\n");
        return 0;
}

 

I agreed to his modification and merged the code.

 

 

Click Blame to view code modification records

 

 

Click History to view the merged modification history

 

 

 There have been errors in editing README.md. At first, I did not write according to the rules, and the main title is below the first-level title. After checking  https://blog.csdn.net/napoay/article/details/50453480 , I understand that it is on GitHub A brief introduction to README.md, which was merged successfully after my teammates helped me change it.

README.md

 

The above is the operation process of code management for me and my partner.

 It was a pleasure to work with partners. Although there were some problems, I gained a lot and was very satisfied.

 

 Friends' GitHub: https://github.com/FYrain

My GitHub:  https://github.com/yingjieLegend 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324998417&siteId=291194637