Installing Git with yum under CentOS step

Source: Internet
Author: User

Git is an open source distributed version control system for efficient, high-speed processing of project versioning from very small to very large. Git is an open source version control software developed by Linus Torvalds to help manage the development of the Linux kernel. Git is a version control tool for Linux kernel development. Unlike commonly used CVS, Subversion, it uses a distributed repository, without the support of the server-side software, so that the release and exchange of the source code is extremely convenient.

1, download Geekery.repo file, the specific operation is as follows:

Locate the directory where the yum file is stored, with the following command:

cd/etc/yum.repos.d/

Open Connection Address: Http://geekery.altervista.org/geekery-el6-x86_64.repo, copy the contents of the connection address displayed, using the following command:

Vim Geekery.repo

Add the copied content to the file, Esc:wq exit save.

2, download Rpmforge-release RPM package, Address: Http://packages.sw.be/rpmforge-release, then execute the installation command as follows:

RPM-IVH rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

3, download Epel-release RPM package, Address: http://rpm.pbone.net/, search epel-release, download the corresponding system and adapt the RMP package, then execute the installation command as follows:

RPM-IVH epel-release-6-8.1.noarch.rpm

4. Install git execution command as follows:

Yum-y Install git

5. Verify that Git is successfully installed with the following command:

Git--version

6, add user git, the command is as follows:

sudo useradd-r-s/bin/sh-c ' git version control '-d/home/git git

7, set permissions, the code is as follows:

Mkdir-p/home/git chown Git:git/home/git

Reference Address: http://www.yoodb.com/article/display/343

Features of Git:

From a general developer's point of view, Git has the following features:

1. Clone the complete Git repository (including code and version information) from the server to a single machine.

2, in their own machine based on different development purposes, create branches, modify the code.

3. Commit the code on the branch you created on the machine.

4. Merge branches on a single machine.

5. Fetch the latest version of the code on the server and merge it with your main branch.

6. Create patches to send patches to the main developer.

7, look at the feedback of the main developer, if the main developer discovers that there is a conflict between the two general developers (they can resolve the conflict between them), they will be asked to resolve the conflict first, and then by one of the people submit. If the main developer can resolve it himself, or if there is no conflict, pass.

8, the general developer to resolve the conflict between the method, the developer can use pull command to resolve the conflict, resolve the conflict and then submit the patch to the main developer.

From the main developer's point of view, Git has the following features:

1, check the mail or other ways to view the general Developer's submission status.

2, patching, resolve the conflict (you can solve their own, you can also ask developers to resolve the future and then resubmit, if it is open source projects, but also decide which patches are useful, which do not).

3. Submit the results to the public server and notify all developers.

Installing Git with yum under CentOS step

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.