How to set aliasses in the Git Bash for Windows? – Stack Overflow

To configure bash aliases, it’s the same as if you were on a Unix platform: put them in a .bashrc in your home:

Alias ngs for serving angular development server and open a web browser:

(In some cases* you can find equivalent for .bashrc file in C:\Users\<username>\AppData\Local\GitHub\PortableGit_\etc\profile.d\aliases.sh. And you should add aliases in aliases.sh.)

(*this case is when you install Git for Windows GUI release from https://git-scm.com/download/winthat contains GitBash)

Source: How to set aliasses in the Git Bash for Windows? – Stack Overflow

Leave a Reply