github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jezdez / git-serve

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 8
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A helper tool for git that mimics mercurial's serve command. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

renamed git-serve to gitserve 
jezdez (author)
Mon Apr 28 03:32:30 -0700 2008
commit  ebe310c4632265074d8d3b60ccbf29f5fc6c85e2
tree    1439f8c615fd71a377ea40a64318aa9943f2371d
parent  97c762805c6578c14b5bc862e44578614a464329
git-serve /
name age
history
message
file .gitignore Mon Apr 28 03:22:31 -0700 2008 added gitignore file [Jannis Leidel]
file INSTALL.txt Mon Apr 28 03:32:30 -0700 2008 renamed git-serve to gitserve [Jannis Leidel]
file LICENSE.txt Mon Apr 28 03:32:30 -0700 2008 renamed git-serve to gitserve [Jannis Leidel]
file MANIFEST.in Thu Apr 24 08:01:57 -0700 2008 * switched back to GPL. * fixed a bug in the ma... [Jannis Leidel]
file README.txt Mon Apr 28 03:32:30 -0700 2008 renamed git-serve to gitserve [Jannis Leidel]
file setup.py Mon Apr 28 03:32:30 -0700 2008 renamed git-serve to gitserve [Jannis Leidel]
directory src/ Mon Apr 28 03:12:32 -0700 2008 (hopefully) fixed weird behaviour of setuptools... [Jannis Leidel]
README.txt
========
gitserve
========

This is a helper tool for git that mimics mercurial_'s serve_ command.

It makes it very easy to see all your git project via git_'s own gitweb_ by
running a lightweight local server.

.. _mercurial: http://www.selenic.com/mercurial/
.. _serve: http://www.selenic.com/mercurial/wiki/index.cgi/hgserve
.. _git: http://git.or.cz/
.. _gitweb: http://git.or.cz/gitwiki/Gitweb

Usage
-----

When ``gitserve`` was installed correctly (with ``sudo``) it's usually located
in ``/usr/local/bin``. Note that this directory needs to be on your ``$PATH``
environment variable to be found by your shell.

Usage pretty easy::

    $ gitserve --help
    Usage: gitserve [options] <dir>

    Options:
      --version             show program's version number and exit
      -h, --help            show this help message and exit
      -v, --verbose         print status messages to stdout
      -q, --quiet           don't print anything to stdout
      -p PORT, --port=PORT  port to listen on (default: 8000)
      -a ADDRESS, --address=ADDRESS
                            address to listen on (default: hostname)
      -l, --local           only listen on 127.0.0.1
      -b, --browser         open default browser automatically
      -d, --daemon          detach from terminal and become a daemon
      --pid-file=PIDFILE    write the spawned process-id to this file
      --gitweb=GITWEB       use this gitweb cgi file instead of the included
                            version

As the only argument you can specify a directory that contains your git
projects. If you leave this argument blank ``gitserve`` will automatically uses
the current directory as the source for the gitweb script. E.g.::

    $ gitserve /home/jannis/git-projects

Shortcuts in the directory argument are also possible and will be expanded on
runtime::

    $ gitserve ~/git-projects

The default ``gitserve`` process will listen on your machine's hostname and on
port 8000, for example: http://127.0.0.1:8000/

If you provide a ``--port`` or ``--address`` option while starting ``gitserve``
you can have ``gitserve`` listen on your choices. You need to be root to run
it on port 80 or any other port below 1024. The ``--local`` option tells
``gitserve`` to listen only on ``127.0.0.1``.

The ``--browser`` option tells ``gitserve`` to automatically start your system's
default web browser with the URL of the ``gitserve`` server while starting it.

The ``--daemon`` option causes the whole ``gitserve`` process to detach from
your current shell session, becoming a daemon process that runs in background.
This is very useful in combination with the ``--pid-file`` option that write
the process id in the given file.

You can specify the location of the gitweb.cgi file that ``gitserve`` uses
with the ``--gitweb`` option (e.g. /home/jannis/lib/git/gitweb.cgi).
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server