Tuesday, 13 April 2010

Bash prompt with Git branch and status

Permalink

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

git_prompt_bare_repo.png

git_prompt_normal_repo.png

git_prompt_outside_work_tree.png

[Read More…]

Monday, 12 October 2009

Git instaweb using mongoose and msysGit

Permalink

Requirements

Mongoose setup

Rename mongoose-2.8.exe to mongoose4instagit.exe and place it in any folder at your choice, in my case: k:devtoolsmongoosemongoose4instagit.exe

Gitweb setup

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…]

Sunday, 20 September 2009

Git on Windows with msysGit

Permalink

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:

  • Git 1.7.0.5 - recommended
  • Git 1.6.6.2
  • Git 1.6.5.8
  • Git 1.6.4.4

Requirements

Setting up Git

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.

[Read More…]

Thursday, 27 August 2009

Git resources

Permalink

Source code / binaries / GUI

Setting up Git server

[Read More…]