Git 快捷设置

经常使用git命令,设置快捷键会方便很多,设置方式如下:

git config --global alias.st status

或者:

修改~/.gitconfig,加入以下部分:

[alias]
co = checkout
ci = commit
st = status
br = branch
sh = stash
sp = stash pop
pu = push
pr = pull -r
rb = rebase
lg = log -p

posted @ 2014-12-30 20:36  shevche  阅读(2174)  评论(0编辑  收藏  举报