How to create an alias for Git Bash in Windows 10? I need to create an alias for the long path to my project folder, so I do not need to enter it again and again each time bash is opened. I searched for the answers and tried a few "correct answers", but so far no one has worked.
They include: create .bashrc, or some people suggest .bashrc.(after creating this file I can’t do anything about it. Windows says
Could not find this item. It is no longer in C: \. Check the location of the item and try again.
)
echo alias='<path>' > .bashrc(I also tried →)
I can edit the file .bashrcand add aliases there, but none of them work. I tried editing the file .gitconfigin my home folder [alias] = ''
The same result when I type cd <alias name>::
No such file or directory
All I have to do is type: cd and this will lead me to ~ /// ...
source
share