Learn github-1 from scratch and the history of GitHub

Source: Internet
Author: User

* What is GitHub

Distributed version Control (650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0004.gif "alt=" J_0004.gif "/> What ghost =_=)

* What is version control

(Scene one)


Is you write a c++/c language project "I have only learned C + + and C language" (probably very big, need a lot of people to write) but you and your little partner can not succeed at once, right, certainly in the process of development, the current project needs to be continuously optimized, the first version of the bug may be patched by a second version , and then a new bug arises, and if you produce a third version, but you have a more serious bug, you may want to (wtf!!! And then your second version is important, and you can submit each update to GitHub to help you manage it ~ ~ ~ ~

(Scene II)

Spicy chicken, such as me and my small partners, may also not touch the big project, at this stage, we are in the process of writing a small program to exercise their own way of the great God, spicy problems come, there is no feeling to write a lot, but in the time of the search is very laborious, and sometimes the hands of cheap, in storage space, We will be particularly painful to delete a long time before the program,GitHub can help you to write each program to manage and retain, leaving you a clear world ~~~~~~650) this.width=650; "src=" http// Img.baidu.com/hi/jx2/j_0069.gif "alt=" J_0069.gif "/>

(Scene three)

As a program ape for us,GitHub gives me our richer spiritual world, which is open source projects .

* Historical changes in version control

(First stage)

Prehistoric Times: diff and Patch

Diff:diff command (difference) to compare the differences between two text files or directories

Eg:diff-u Hello World>diff.txt

Explanation: Compare the differences between the Hello file (original file) and the world file (the destination file) to save the diff


Patch:diff Anti-operation

EG:CP Hello World

Patch-r World<diff.txt

Explanation: You can find the deleted hello file by using the diff file


(Second stage)

The era of CVS----open version control outbreaks

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7E/DC/wKioL1cLSRKi_KYMAAGHerpelHc311.png "title=" screen shot 2016-04-11 14.45.52.png "alt=" Wkiol1clsrki_kymaagherpelhc311.png "/>

(Third stage)

The era of SVN----The synthesizer of centralized version control

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/DF/wKiom1cLSHqjStewAAHn8IYVVB0579.png "title=" screen shot 2016-04-11 14.45.59.png "alt=" Wkiom1clshqjstewaahn8iyvvb0579.png "/>

(Fourth stage)

The era of git---great works of Linus

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7E/DF/wKiom1cLSJWxSWJQAANYlWytTW4736.png "title=" screen shot 2016-04-11 14.46.18.png "alt=" Wkiom1clsjwxswjqaanylwyttw4736.png "/>

This article from "Momo is spicy moe" blog, please be sure to keep this source http://momo462.blog.51cto.com/10138434/1762614

Learn github-1 from scratch and the history of GitHub

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.