Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is "MINGW64" appearing on my Git bash?

I had to format my laptop, and so I had to install Git again. However it is quite different from the one I had yesterday, the icon is not the default orange one anymore, it looks more like Chrome now.

git

The bash is quite different, including a purple "MINGW64" in every line. Why is it there?

Is this the new final version? Or did I download something different?

I downloaded https://github.com/git-for-windows/git/releases/download/v2.5.1.windows.1/Git-2.5.1-64-bit.exe from https://git-scm.com/downloads .

Thanks!

like image 875
FelipeKunzler Avatar asked Sep 02 '15 14:09

FelipeKunzler


People also ask

Where is MINGW64?

Find it by typing cd / then pwd -W . Alternatively, from the start menu, right click on the Git Bash icon and select open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git , the mingw64 in this directory is your root.

How do I change my git bash path?

To change the default startup directory of Git Bash, do the following steps: Right-click on Git Bash's shortcut icon and go to the Properties. In the Start in field, paste the path to the desired folder, e.g. D:\WorkDir. Remove --cd-to-home from the Target field if it exists.

What is Msys git bash?

The relationship between msysGit and Git for Windows It comes with a Bash (a Unix-type shell), with a Perl interpreter and with the Git executable and its dependencies. On the other hand, msysGit is the software package installing the build environment that can build Git for Windows.


2 Answers

Easiest way to remove 'MINGW64' is to comment two lines in file:

\Git\etc\profile.d\git-prompt.sh ... # PS1="$PS1"'\[\033[35m\]'       # change to purple # PS1="$PS1"'$MSYSTEM '          # show MSYSTEM 
like image 144
raygreentea Avatar answered Oct 13 '22 06:10

raygreentea


This is the new icon being used with Git for Windows 2.x. The website needs an update for that I guess but there are not many volunteers typically.

The MINGW64 is the value from the MSYSTEM environment variable. This has been included in the bash prompt by setting PS1 in the /etc/bash.bashrc file. You can either override this in your own $HOME/.profile or edit the distributed one to remove that if you prefer.

like image 31
patthoyts Avatar answered Oct 13 '22 06:10

patthoyts