I want to know how to simply publish over http = much like Mercurial\'s hg serve! On the Windows/work box do this:
git serve
and then on t
Git 2.21 (Feb. 2019) allows you to combine python and git instaweb:
See commit 2eb14bb (28 Jan 2019) by Arti Zirk (artizirk).
(Merged by Junio C Hamano -- gitster -- in commit abf39e3, 05 Feb 2019)
git-instaweb: add Python builtinhttp.serversupportWith this patch it is possible to launch
git-instawebby using Pythonhttp.serverCGI handler via-d pythonoption.
git-instawebgenerates a small wrapper around thehttp.server(inGIT_DIR/gitweb/) that address a limitation of the CGI handler where CGI scripts have to be in acgi-binsubdirectory and directory index can't be easily changed. To keep the implementation small,gitwebis running on url/cgi-bin/gitweb.cgiand an automatic redirection is done when opening/.The generated wrapper is compatible with both Python 2 and 3.
Python is by default installed on most modern Linux distributions which enables running
git instaweb -d pythonwithout needing anything else.