I created a goToProject.bat file with this content:
cd C:\Dev\MyProject
I want to run goToProject.bat using Git Bash because I don’t want to manually go to the folder every time I have to use Git in my project.
To run goToProject.bat from Git Bash, I can do this:
$cmd goToProject.bat
By doing this, goToProject.bat is started, but the console is converted to the cmd console of windows and, if I do this:
c:\Dev\MyProject> exit
The console is converted again to the Git Bash console, but in the default route.
How can I run goToProject.bat and stay in the Git Bash console?
source
share