git Alias 设置

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
posted @ 2017-08-16 15:43  cxchanpin  阅读(228)  评论(0编辑  收藏  举报