Install Git on Ubuntu

Source: Internet
Author: User
Git is an open-source distributed version control system that is widely used around the world. On the Internet, websites such as GitHub provide free Git services. Many popular open-source projects use Git to host projects, such as Perl, RubyonRails, and Linux kernel projects. The best way to install Git on Ubuntu is to use the software packages provided by the Ubuntu software repository. These software packages have been fully tested and pre-compiled. It is very convenient to install or uninstall them. Lower

Git is an open-source distributed version control system that is widely used around the world. On the Internet, websites such as GitHub provide free Git services. 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 Ubuntu is to use the software packages provided by the Ubuntu software repository. These software packages have been fully tested and pre-compiled. It is very convenient to install or uninstall them.

Next we will update the software repository 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 database index
# Apt-get update
# Apt-get upgrade
2. Install the Git Service
After completing the update operation, you can start to install the Git service.

# Apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
Git-man liberror-perl
Suggested packages:
Git-daemon-run git-daemon-sysvinit git-doc git-el git-arch
Git-cvs git-svn git-email git-gui gitk gitweb
The following NEW packages will be installed:
Git-core git-man liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 100 not upgraded.
Need to get 6,752 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get: 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. 7.9.5-1ubuntu0. 1 [631 kB]
Get: 3 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main git amd64. 7.9.5-1ubuntu0. 1 [6,097 kB]
Get: 4 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main git-core all. 7.9.5-1ubuntu0. 1 [1,380 B]
Fetched 6,752 kB in 1 s (3,712 kB/s)
Selecting previusly unselected package liberror-perl.
(Reading database... 51734 files and directories currently installed .)
Unpacking liberror-perl (from.../liberror-perl_0.17-1_all.deb )...
Selecting previusly unselected package git-man.
Unpacking git-man (from.../git-man_1% 3a1. 7.9.5-1ubuntu0. 1_all.deb )...
Selecting previusly unselected package git.
Unpacking git (from.../git_1% 3a1. 7.9.5-1ubuntu0. Unzip amd64.deb )...
Selecting previusly 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. basic configuration
Once the above installation is complete, configure the Git service. The basic configuration is as follows:

# Git config -- global user. name "linuxidc"
# Git config -- global user. email linuxidc@linuxidc.net
You can replace the user name and password based on your actual needs.

GitHub tutorials:

GitHub tutorials graphic detailed http://www.linuxidc.com/Linux/2014-09/106230.htm

Git tag management details http://www.linuxidc.com/Linux/2014-09/106231.htm

Git branch management details http://www.linuxidc.com/Linux/2014-09/106232.htm

Git remote repository details http://www.linuxidc.com/Linux/2014-09/106233.htm

Git local Repository (Repository) Detailed description http://www.linuxidc.com/Linux/2014-09/106234.htm

Git server setup and Client installation http://www.linuxidc.com/Linux/2014-05/101830.htm

Git overview http://www.linuxidc.com/Linux/2014-05/101829.htm

Share practical GitHub tutorialsHttp://www.linuxidc.com/Linux/2014-04/100556.htm

Ubuntu Git server setup and user guide http://www.linuxidc.com/Linux/2015-07/120617.htm

Git details: Click here
Git: Click here

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-09/123301.htm

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.