How do I avoid typing “git” at the begining of every Git command?

后端 未结 15 765
醉酒成梦
醉酒成梦 2021-01-29 22:31

I\'m wondering if there\'s a way to avoid having to type the word git at the beginning of every Git command.

It would be nice if there was a way to use the

15条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-29 23:04

    When I used Windows 7 with Conemu, I added the following to my dev environment startup script:

    doskey g=git $*
    

    With this, I could just use the g command instead of typing git. Last I tried with Windows 10 and Conemu, it did not work, there is a bug, I think, but it's worth a try.

提交回复
热议问题