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.
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.
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 .
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.
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.
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.
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