Linux System CentOS6.5 64-bit registration, install GIT version control tool

Source: Internet
Author: User
Tags version control system

First, describe

This article describes the Linux system CentOS6.5 64-bit registration, the installation of Git version control tools throughout the process, where git is a distributed version control system, originally written by Linus Torvalds , used as Management of Linux kernel code. as an open source code base and version control system, GitHub has more than 1.4 million developer users. As more and more applications move to the cloud, GitHub has become the preferred method for managing software development and discovering existing code.

Second, git installation and use steps

1. Register your free account on GitHub website and build your own code warehouse (Repository)

GitHub website Registered Address: Https://github.com/join, as long as the user name, email and password can be registered successfully.

After successful registration, log on to the GitHub website, click on the "Gear" button in the upper right corner, the Settings button to enter your personal account Settings home page, click the "Create Repository" button, name a warehouse name can be created successfully.

2. Configure SSH remote connection on CentOS6.5 system command line GitHub

First create the SSH key locally:

[email protected] root]$ sudo ssh-keygen-t rsa-c "[Email protected]"

Note: The mailbox after-C is your website to register the GitHub account mailbox, according to your own mailbox fill in

Press ENTER all during the key generation process to keep the default. This generates under the. SSH folder in the Linux user's home directory: Id_rsa and id_rsa.pub two files

My Linux user name is Yuehong, so the generated key file is in the;/home/yuehong/.ssh directory, view the contents of the Id_rsa.pub file and paste it into the key of SSH keys:

[email protected]. ssh]$ Cat Id_rsa.pub
then go back to the GitHub website, go to account Settings, choose SSH keys,add ssh key,title to the left, paste the key, that is, copy the contents of the Id_rsa.pub file to the key text box. specific

Click on Add SSH key, in the pop-up dialog box Titile according to your needs to fill in the Key text box content is id_rsa.pub content

At the end of the SSH connection test, enter the following command on the Linux command line:

[email protected]. ssh]$ ssh-t [email protected]

The following prompts indicate that the test connection was successful:

The above set up a connection to GitHub, if your native installed Git so you can start to roam git source code download, debugging and upload, if you have not installed Git, then go to the next step to install Git.

3. Install git1.7.1 software on the CentOS6.5 64-bit operating system

Here we use Yum installation, which requires three files: Geekery-el6-x86_64.repo, rpmforge-release-0.5.3-1.el6.rf.i686.rpm, EPEL-RELEASE-6-8.1.NOARCH.RPM of three files.

The three files: http://download.csdn.net/detail/tongyuehong/8592143

If you want to download a different version, these three files are available on the official website :

http://geekery.altervista.org/dokuwiki/doku.php

http://pkgs.repoforge.org/rpmforge-release/

http://rpm.pbone.net/enter epel-release in the input box and select the search type of "Searching for RPMs by name"

3.1 Copy the downloaded three files to the/etc/yum.repos.d/directory

3.2 Execute the following three commands in this directory:

[[email protected] yuehongsoftware]$ sudo rpm-ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm[[email protected] yuehongsoftware]$ sudo rpm-ivh epel-release-6-8.1.noarch.rpm [[email protected] yuehongsoftware]$ sudo yum install git-y

The prompt information below indicates that the installation was successful:

then enter the following command to view the git version:

[[email protected] yuehongsoftware]$ git--version

git version 1.7.1


4. Use git to download source code from GitHub

For example: In my first step, "Create Repository" (the name of the repository) is Hadoop, click the created warehouse name, copy the HTTPS address on the right, click the clone URL


Use the following command:

[[email protected] repos]$ sudo git clone [email protected]:tongyuehong/hadoop.git

above is our GitHub warehouse address, in the format: sudo git clone [email protected]: github account name / You build your own warehouse name . git You just need to change to the address you copied.





Linux System CentOS6.5 64-bit registration, install GIT version control tool

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.