Mac. Gitconfig Configuration Aliases Alias

Source: Internet
Author: User
Tags aliases

In multi-person collaborative development, GIT is generally used for code management. Git has some commands such as Git pull, git push, and so on, and these commands can set alias, which is abbreviated. such as: git pull is git pl, git push is git PS. Can be modified according to personal habits.

To modify aliases, alias steps are as follows:

1, go to the root directory
$ cd
2. View the files under the root directory
$ ls -la

Check to see if there is a. gitconfig file.

3, edit. Gitconfig
$ vi .gitconfig

Add the following:

[alias]co = checkoutci = commitst = statuspl = pullps = pushdt = difftooll = log --statcp = cherry-pickca = commit -ab = branch

Specifically, you can add changes according to your personal habits.

The source of this article just online: http://www.superqq.com/blog/2015/05/29/macxia-dot-gitconfigpei-zhi-bie-ming-alias/

Mac. Gitconfig Configuration Aliases Alias

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.