码迷,mamicode.com
首页 > 其他好文 > 详细

git Alias 设置

时间:2017-08-16 17:10:01      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:style   article   pos   white   art   over   data-   log   bash   

git Alias 设置

Git 使用比較多的话能够设置一些命令的 Alias ,简单的说就是用简写取代整个完整的命令。

如co 代表 checkout。

Mac下,到根文件夹

cd ~  

然后

vi .gitconfig  

然后在设置文件最后增加

[alias]
co = checkout
ci = commit
st = status
pl = pull
ps = push
dt = difftool
l = log —stat
cp = cherry-pick
ca = commit -a
b = branch

git Alias 设置

标签:style   article   pos   white   art   over   data-   log   bash   

原文地址:http://www.cnblogs.com/cxchanpin/p/7373699.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!