经常使用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
经常使用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
转载于:https://www.cnblogs.com/shevche/p/4194393.html