Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git for Windows, run git bash without mintty?

Tags:

git

git-bash

After upgrading my PC to Windows 10 and doing a reset, I had to redownload all of my programs. When I downloaded Git for Windows, it came with a newer version compared to what I used before. This version looks to use mintty for the terminal, which doesn't seem to support using arrow keys to scroll through options when running certain commands. Example is Yeoman, you're supposed to use the arrow keys to select what you want to do, but the arrow keys just moves the cursor instead of the options list.

So thinking this is a mintty issue, how can I go back to the previous terminal that was being used (sorry don't remember what it was pre-2.5)? Or how to start git-bash without mintty? Or anyone know a way to get mintty to work with arrows properly?

like image 552
user1795832 Avatar asked Aug 23 '15 18:08

user1795832


People also ask

Does Git Bash use MinTTY?

git-bash.exe runs mintty.exe . To launch Git Bash in a non-Mintty terminal, use git-⁠cmd.exe , examples of which are in the next two sections.

Should I use MinTTY or Windows default console?

Choose MinTTY, the default terminal of MSYS2, instead of your Windows 10 default console window. This will help you keep your Git operations separate from the remaining PC functions. Also, the MinTTY window feels exactly the same as the command terminal.

Does Git for Windows include Git Bash?

Git Bash comes included as part of the Git For Windows package. Download and install Git For Windows like other Windows applications. Once downloaded find the included .exe file and open to execute Git Bash.

Does Git install MinTTY?

For MSYS2, mintty is installed by default, or it can be installed later with the command pacman -S mintty . In Git-for-Windows, mintty is installed by default and invoked as "Git Bash".


1 Answers

I'm using console2 to display my different cmd.exe and bash windows in tabs, so I ran into the same problem. The way I solved it was to call cmd.exe and have it launch the git bash. That seems to do the trick for me. So configure your tool(s) to use a shell like that:

cmd.exe /C "C:\Program Files\Git\bin\bash.exe" --login -i

(Of course you may need to adjust the path.)

like image 184
ilpssun Avatar answered Sep 22 '22 06:09

ilpssun