Set aliases in the Git Bash for Windows

Keren Xu


It is easy to get tired of typing ssh again and again when trying to login to hpc. Here are some steps that can help save a few seconds everyday.
A heads-up: These steps only work for git bash terminal on windows.

nano .bashrc

Enter your alias in .bashrc:


Close .bashrc and then type the following command in git bash terminal:

source .bashrc

Okay, now we can forget ssh and only need to type hpc next time.