Notes-Git uses

Source: Internet
Author: User

On the simple use of git, only a few common instructions, a comprehensive use of Baidu above many

Common directives:

Clone project

git clone http://git.oschina.net/xxxxxx/xxxxxx.git

#更新本地代码

Git pull

#Add

git Add.

#commit

Git Commit-am ""

#提交master分支

Git push Origin Master

#进入指定的本地目录

Cd/d/apps/workspaces/adt/rexdemo

#避免每次都输入username and Password:

Http://www.cnblogs.com/ballwql/p/3462104.html

#使用方法一即可 (pro-Test)

1.1 Create File Store git username and password, also available under Ubuntu

In the%home% directory, the general is C:\users\Administrator, or you can create your own system User name directory, anyway in C:\users\. The file name is. git-credentials because the "." is not allowed to be created directly in window. Start with Git bash, open the Git bash client, make the%home% directory, and then create the file with touch. Git-credentials, edit this file with vim and enter the content format:

Touch. Git-credentials

Vim. Git-credentials

Https://{username}:{password} @github. com

1.2 Adding git Config content

Enter the GIT bash terminal and enter the following command:

git config--global credential.helper store

After the above operation, try to clone a copy of the code from Git, then you need to enter once, when clone is complete, open. Git-credentials, you will find more rows of data, that is, the user name and data, is saved using clear text

Notes-Git uses

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.