installation, configuration, and basic usage of the GIT client

Source: Internet
Author: User
Tags git client


First, install the Git client

#yum源方式安装yum-y install git

Second, configure the Git client

git config--global user.name "xxx" git config--global user.email "yyy"

Third, if it is to create a new repository

git clone [email protected]${gitaddr}:${username}/${projectname}.gitcd ${projectname}touch readme.mdgit Add Readme.mdgit commit-m "Add README" Git push-u origin Master

Iv. If the existing project path is converted to Repository

CD existing_foldergit initvim gitignorevim readme.mdgit Remote add origin [email protected]${gitaddr}:${username}/${ Projectname}.gitgit Add. Git Commitgit push-u Origin Master


Finish


This article is from the "11484324" blog, please be sure to keep this source http://11494324.blog.51cto.com/11484324/1828008

installation, configuration, and basic usage of the GIT client

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.