且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

git命令的快捷方式

更新时间:2023-01-31 09:58:35

将此放入您的 .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