本文介绍了git命令的快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为git命令使用快捷键或别名。
git diff
git status
git push
git pull
git stash
git branch -a
如何创建快捷键或别名,是否有预定义的列表?
解决方案
将此放入您的 .gitconfig
[别名]
st =状态
ci =提交
br =分支
co =结帐
您可以随心所欲添加
I would like to use shortcuts or aliases for git commands.
git diff
git status
git push
git pull
git stash
git branch -a
How do I create shortcuts or aliases, is there a predefined list?
解决方案
Put this into your .gitconfig
[alias]
st = status
ci = commit
br = branch
co = checkout
You can add as much as you want
这篇关于git命令的快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!