Getting Started with Git learning

Source: Internet
Author: User
Tags version control system

What Git is:

A free distributed version control system,

  

Many people know that Linus in 1991 to create the open source of Linux, since then, the development of Linux systems, has become the largest server system software.

Linus Although Linux was created, but the expansion of Linux relies on enthusiastic volunteers all over the world, so many people write code for Linux worldwide, how is the code of Linux managed?

The fact is, before 2002, volunteers from all over the world sent the source code files by diff to Linus, and then by Linus himself to merge the code by hand!

You might think, why Linus not put Linux code in the version control system? Don't you have CVS, SVN, these free version control systems? Because Linus is firmly opposed to CVS and SVN, these centralized version control systems are slow and must be networked to use. There are some commercial version control system, although more than CVS, SVN, but that is paid, and the Linux open source spirit does not match.

However, by the year 2002, the Linux system has been developed for 10 years, the size of the code base makes it difficult for Linus to continue to manage by hand, the community's brothers also expressed strong dissatisfaction with this way, so Linus chose a commercial version control system BitKeeper, BitKeeper's owner, BitMover, has granted the Linux community free access to this version control system in the spirit of humanitarianism.

The great situation of unity and stability was broken in the 2005, because the Linux community cattle gathered, inevitably contaminated with some Liangshan heroes of the lakes and rivers habits. Andrew, who developed samba, tried to crack BitKeeper's protocol (and he was not the only one), and was discovered by the BitMover company (monitoring works well!). ), so BitMover company anger, to recover the free use of the Linux community.

Linus can apologize to BitMover company and make sure to discipline the brethren later, well, it is impossible. The reality is this:

Linus spent two weeks writing a distributed version control system in C, which is git! Within one months, the Linux system's source code has been managed by Git! How does a cow define it? You can appreciate it.

Git quickly became the most popular distributed version control system, especially in 2008, when the GitHub site came online, providing free git storage for open-source projects, and countless open-source projects migrating to GitHub, including Jquery,php,ruby and more.

History is so accidental, if not the BitMover company to threaten the Linux community, we may now have no free and super good Git

1. Baidu git Download installation

Set up

  $ git config --global user.name "Your Name"

  $ git config --global user.email "[email protected]"

  

2. Create a version library

 

 

3.

Add Command:

    $ git add file1.txt

     $ git add file2.txt file3.txt

    $ git commit -m "add 3 files.

Submit command:

    $ git commit -m "wrote a readme file"The following is a log for easy recovery

  

  

3/

3/

3

Getting Started with Git learning

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.