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
Written by Joe "coderjoe" Bauser
Related protips
1 Response
Awesome.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#