search

Home  >  Q&A  >  body text

Windows下的git能否配置成这样

在Windows上每次使用git时,都必须输入 git xxx xxx,每条命令需要"git",浪费了很多"能量"

我看到zsh中把配置了很多git的alias,非常实用(见图片),所以想Windows下是否能够配置成这样(在Windows下开发就是麻烦)
比如git st => gs

之前对Git/etc/git-completion.bash做过配置,猜想应该是对这个文件进行配置?

迷茫迷茫2811 days ago518

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:20:33

    In addition to configuring directly in git config, you can also import all Modules into the same project in IntelliJ. In this way, the git operation will be done directly on all Modules at the same time, which is very convenient.

    reply
    0
  • 为情所困

    为情所困2017-05-02 09:20:33

    Detailed link

    git config --global alias.st status

    reply
    0
  • Cancelreply