Bash prompt with Git branch and status
Tuesday, 13 April 2010 by alexandrulBased on Gunnar Wolf’s .bashrc, I have customized my .bash_profile to show exit status, bare repositories, and outside work tree cases:



Based on Gunnar Wolf’s .bashrc, I have customized my .bash_profile to show exit status, bare repositories, and outside work tree cases:



Rename mongoose-2.8.exe to mongoose4instagit.exe and place it in any folder at your choice, in my case: k:devtoolsmongoosemongoose4instagit.exe
In a msysGit shell run the following commands to build gitweb.cgi in case it’s not already present (like after running make clean in /git folder):
cd /git make gitweb/gitweb.cgi
Next, extract CGI.pm archive content, and copy the content of the lib subfolder to /lib/perl5/site_perl, keeping the folder structure:
[Read More…]
The article is based on Install MSysGit wiki page from the msysGit website, and you could also read Updating MSysGit.
For best results use one of the following Git versions:
First unpack msysGit installer to your desired location (7-Zip works just fine). In my case, the location is K:devtoolsmsysGit. Also, this folder is the root folder inside the msysGit shell, and would be the reference for the rest of the tutorial.
In the K:devtoolsmsysGitgit folder you will find the Git source code provided with the installer. Delete all the files and folders inside it, and then unpack in the same folder the source code of your desired git version.
Final step would be running K:devtoolsmsysGitmsys.bat, which will compile and install git, and leave you to a shell prompt.