Build git on Ubuntu

Source: Internet
Author: User
Tags version control system ruby on rails

In Ubuntu build Gitchszs, All rights reserved, without consent, may not reprint. Blogger Home: Http://blog.csdn.net/chszs

Git is an open source distributed version control system that has been widely used worldwide. Web sites like GitHub offer free git services, and many popular open source projects use Git to host projects such as Perl, Ruby on Rails, and Linux kernel projects.
The best way to install Git on an Ubuntu system is to use the software packages provided by the Ubuntu repositories, which have been fully tested, pre-compiled, and easy to install or uninstall.
Below we will update the Software Warehouse index on the server online to ensure that the installed Git server is a relatively new stable version.

1. Upgrade the system and update the library index
# apt-get update# apt-get upgrade
2. Install the GIT service

Once you have completed the update, you are ready to start installing the GIT service.

# Apt-get Install git-corereading package lists ... Donebuilding Dependency Tree Reading state information ... Donethe following extra packages would be installed:git Git-man liberror-perlsuggested packages:git-daemon-run Git-daem On-sysvinit git-doc git-el git-arch git-cvs git-svn git-email Git-gui gitk gitwebthe following NEW packages would be Insta Lled:git Git-core Git-man Liberror-perl0 upgraded, 4 newly installed, 0 to remove and + not upgraded. Need to get 6,752 KB of archives. After this operation, 15.2 MB of additional disk space would be used. Want to continue [y/n]? Yget:1 http://cn.archive.ubuntu.com/ubuntu/precise/main Liberror-perl All 0.17-1 [23.8 kb]get:2/HTTP/ Cn.archive.ubuntu.com/ubuntu/precise-updates/main Git-man all 1:1.7.9.5-1ubuntu0.1 [631 kB]Get:3/HTTP/ Cn.archive.ubuntu.com/ubuntu/precise-updates/main git amd64 1:1.7.9.5-1ubuntu0.1 [6,097 kb]get:4/HTTP/ Cn.archive.ubuntu.com/ubuntu/precise-updates/main git-core all 1:1.7.9.5-1ubuntu0.1 [1,380 b]fetched 6,752 kB in 1s (3,712 kb/s) Selecting previously unselected package Liberror-perl. (Reading database ... 51734 files and directories currently installed.) Unpacking Liberror-perl (from .../liberror-perl_0.17-1_all.deb) ... Selecting previously unselected package Git-man. Unpacking Git-man (from .../git-man_1%3a1.7.9.5-1ubuntu0.1_all.deb) ... Selecting previously unselected package git. Unpacking git (from .../git_1%3a1.7.9.5-1ubuntu0.1_amd64.deb) ... Selecting previously unselected package Git-core. Unpacking Git-core (from .../git-core_1%3a1.7.9.5-1ubuntu0.1_all.deb) ... Processing triggers for man-db ... Setting up Liberror-perl (0.17-1) ... Setting up Git-man (1:1.7.9.5-1ubuntu0.1) ... Setting up Git (1:1.7.9.5-1ubuntu0.1) ... Setting up Git-core (1:1.7.9.5-1ubuntu0.1) ...
3, the basic configuration

Once you have completed the above installation process, you should configure the Git service. The most basic configuration is this:

# git config --global user.name "chszs"# git config --global user.email [email protected]

You can replace the user name and password according to your actual situation.

Copyright NOTICE: This article for Bo Master Chszs original article, without Bo Master permission not reproduced.

Build git on Ubuntu

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.