My Git bash forgets my aliases. What can I do?

When you open the git bash type in the command touch .bash_profile.
Following this type vim .bash_profile.
You can then add your aliases to this file. Save the file and reopen the git bash and your aliases should work as expected.

This method allows you to create aliases for any bash command available in git bash however as others have answered it is also possible to create git specific aliases using git itself.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)