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.
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!
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.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With