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