How to set aliases in the Git Bash for Windows?

后端 未结 8 1687
渐次进展
渐次进展 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:18

    You can add it manually in the .gitconfig file

    [alias]
        cm = "commit -m"
    

    Or using the script:

    git config --global alias.cm "commit -m"
    

    Here is a screenshot of the .gitconfig

提交回复
热议问题