Standalone git binary on server with repository viewer

I have a server from my company. On this server is git not installed (and it will not be in the near future). (On many free server hosting sites, git is also not installed)

Is there a way to use a git binary without having git installed (therefore without the needed dependencies in another folder, standalone)?

Another server is no option for me.

I want git for a web git repository viewer, which of course need the git binary working in any folder, maybe there is a web git repository viewer with integrated git binary.

I tried:

The server os is linux 64 Bit. I have copied the git binary from local linux to the executable path on the server. It did not work. So I look up the dependencies. These libraries are needed:


They are only links to libraries named:


So I renamed the libraries and copied them to the server where the git binary lies. But unfortunately the git binary looks in the /lib/linux-64-gnu... os folder for the libraries, not in the same folder. I have no idea what to try next.


Here is my solution:

  1. I downloaded and installed Ubuntu 13 on my Windows PC with the same architecture as the server I want to copy the standalone git binary. Architecture is x86_64 which stands for 64 bit. Download link is
  2. I burned it to a disk, booted from CD. Then I the username was 'Ubuntu', but I needed another one, so I installed Ubuntu on a USB-Stick 32GB.
  3. I downloaded a git tarball file: 'git-1.7.3.tar.bz2' and extracted it with the command 'tar -jxvf git-1.7.3.tar.bz2' in Terminal after used the command 'cd ~/Downloads' to get to the directory, where the downloaded tarball git file is. Download link is (found it with googling 'git .tar.bz2')
  4. Now there is a directory beside the .tar.bz2 file, go into it with 'cd git-'
  5. Just to make sure I installed every command mentioned from other websites that could be useful with 'sudo apt-get install libexpat1-dev asciidoc libz-dev gettext curl'
  6. I created a directory at the path, where the bin should be on the server, because I only have home access it must be in the home folder, with 'mkdir /home/git'
  7. Then I used the command './configure --prefix=/home/git/BIN CFLAGS="${CFLAGS} -static" NO_OPENSSL=1 NO_CURL=1' to fill the extracted folder with my config file: 'config.mak.autogen'
  8. After that I made 'make' and then 'make doc' to create the files and then 'install' and 'make install-doc' and the directory I wanted the git binary filled up with all these files (pretty big 364MB on the stick)
  9. Downloaded Gitlist and uploaded it to my server and uploaded the whole created Folder with all its binaries into the gitlist folder.
  10. Changed the config.ini from Gitlist to use the standalone binary of git, instead of some PATH (also changed the projects path)

Gitlist finds the repository and shows it in the list view

(With GitWeb I got an error, but GitList seems OK)

Need Your Help

Custom Map Tile Overlay Issues

javascript google-maps google-maps-api-3

I have a need to display a couple hundred to perhaps one thousand high resolution aerial photographs over the standard satellite imagery provided by Google maps. The images are geographically disp...

itext nested table width

c# itextsharp

Is there a way to control the width of a nested table? It seems to default to the width of the outer table for me.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.