Last Updated: September 02, 2019
·
2.16K
· coderjoe

Serve up an ad-hoc git repo from your laptop

Ever wanted an Ad-Hoc git server to share some source?

Use this simple alias to serve it up on the spot:

[alias]
    serve = !git daemon --reuseaddr --verbose  --base-path=. --export-all ./.git

Then just run the following within a git repository.

git serve

Anybody can clone your repository with

git clone git://your.laptop.ip.or.hostname/ 

Source: https://git.wiki.kernel.org/index.php/Aliases#Serve_repo_on_the_spot

1 Response
Add your response

Awesome.

over 1 year ago ·