How to create alias for Git Bash on Windows 10? I need to create an alias of the long path to my project folder so I don't have to type it again and again whenever I open bash. I've searched for answers and tried several "correct answers" but none has worked for me so far.
They include:
create a .bashrc or some people suggest .bashrc. (after creating this file, I cannot do anything with it. windows says
Could not find this item This is no longer located in C:\. Verify the item's location and try again.
)
echo alias='<path>' > .bashrc (iI've also tried >>)
I can edit the file .bashrc and put aliases in there but none of them works.
I've tried editing the .gitconfig file in my home folder [alias] =''
Same result whenever I type: cd <alias name>:
No such file or directory
All I need to do is to type: cd and it will lead me to ~///...