Shortcuts for git commands

前端 未结 6 1221
天命终不由人
天命终不由人 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 04:58

    git config --global alias. 
    

    e.g.

    git config --global alias.cob "checkout -b"
    

    (Without --global, you get per-project aliases.)

提交回复
热议问题