I seem to often come across scenarios where I'd like to quickly give someone the means to clone a git repo from e.g. my laptop, and I'd like to perform this feat without running an SSH daemon, git daemon or any other kind of service requiring configuration (or even access control).
The simplest way I've come up with so far is to install the adsf command line web server gem for Ruby, make sure to run git update-server-info
and then just run adsf
in the directory I want to share. If I run it in the root of the repo, for example, I would then tell the other party to clone http://<my_hostname_or_ip>:3000/.git
, or whatever port the server started on.
This works well enough, but does have the caveats of problems caused by concurrent access and the need to have Ruby and the particular gem installed.
What other tools or hacks do you use or know of that perform a similar function?
edit: to clarify, I'm looking for a solution like hg serve
: ad hoc, quick and painless, requiring minimal setup and no persistent services.