Basic commands for installing git in centos 5

Source: Internet
Author: User
I recently studied the deployment of cloudstack and recorded the process below: // Install the GIT dependent package first Yum install zlib-devel Yum install OpenSSL-devel Yum install Perl Yum install cpio Yum install expat-devel Yum install gettext-devel
// Install Autoconf Yum install Autoconf
// Install git Wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz tar xzvf git-latest.tar.gz CD Git-{date} // If this command does not work, find the corresponding folder Autoconf./configure -- With-curl =/usr/local make install Run the following command: Git Clone Https: // Gi T - WIP - Us . Apache . Org /Repos/ ASF / Incubator - Cloudstack . Git Error: Fatal: unable to find remote helper for 'https' Run the following command:

Git config [-- Global] user. Name <Name> sets the user name

Git config [-- Global] user. Email <email> set email address

Git config [-- Global] core. Editor <editor> Set Editor

Git config [-- Global] GitHub. User <user> sets the GitHub account name

Git config [-- Global] GitHub. Token <token> sets GitHub token

-- Global is the global setting for the current system user ~ /. Gitconfig. Configure all users in the system,/etc/gitconfig. For the current project,. Git/config

 

Solution:

1. Install the dependency package:

 
Yum install -YCurl curl-devel

If it fails, find the git-core file and add the path of the git-core file to the path:
[Root@Bogon ~]# Find/-name Git-core
 
/USR/Local/Libexec/Git-core
 
/USR/Local/Share/Git-core
[Root@Bogon ~]# Export Path =/usr/local/libexec/Git-core: $ path

You can solve the problem by installing git again ~~~
 
 

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.