How to set aliases in the Git Bash for Windows?

后端 未结 8 1698
渐次进展
渐次进展 2021-01-29 19:34

How to alias command in Git Bash for Windows downloaded from git-scm.com ?

I mean Bash commands not Git.

(windows7)


Edit:

Writing aliases i

8条回答
  •  一个人的身影
    2021-01-29 20:15

    I had the same problem, I can't figured out how to find the aliases used by Git Bash on Windows. After searching for a while, I found the aliases.sh file under C:\Program Files\Git\etc\profile.d\aliases.sh.

    This is the path under windows 7, maybe can be different in other installation.

    Just open it with your preferred editor in admin mode. After save it, reload your command prompt.

    I hope this can help!

提交回复
热议问题