Shortcuts for git commands

前端 未结 6 1094
天命终不由人
天命终不由人 2021-02-05 04:35

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 shor

6条回答
  •  抹茶落季
    2021-02-05 05:16

    Put this into your .gitconfig

    [alias]
      st = status
      ci = commit
      br = branch
      co = checkout
    

    You can add as much as you want

提交回复
热议问题