Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git-instaweb and git-clone

Tags:

git

I setup a git webserver on my local machine using git-instaweb.

Now I want to be able to clone from that repos, but when I tried

git clone http://localhost:1234 it gives me an error:

fatal: http://localhost:1234/info/refs not found: did you run git update-server-info on the server?

git update-server-info didn't help. Anybody has a solution to this?

Thank you in advance.

like image 245
Ritchie Avatar asked Mar 08 '11 02:03

Ritchie


People also ask

What is git Instaweb?

Instaweb is a script used to set up a temporary instance of GitWeb on a web server for browsing local repositories. Instaweb requires, at a minimum, a light-weight server such as lighttpd or webrick.

What happens when you git clone?

The Git clone command will create a new local directory for the repository, copy all the contents of the specified repository, create the remote tracked branches, and checkout an initial branch locally. By default, Git clone will create a reference to the remote repository called origin .

What is git daemon?

git-daemon is a simple server for git repositories. The daemon makes git repositories available over the git:// protocol, which is very efficient, but insecure.

Where is Gitweb installed?

If you have not set up remote Git repositories yet, you can set up your bare git repos in the /var/lib/git directory, which is the default location Gitweb checks for repos. You can customize this directory location with the Gitweb configuration file: /etc/gitweb.


1 Answers

Git instaweb is designed for browsing the repository in a web browser, rather than something you can clone from. Try going to http://localhost:1234 in your web browser to see.

If you want to clone from something, you may be looking for git-daemon instead.

like image 68
Greg Hewgill Avatar answered Oct 30 '22 14:10

Greg Hewgill