# git-static

> Serve static files backed by Git.

Latest version **0.0.15** (published 2015-03-04) · 0 weekly downloads

## Install

```sh
npm install git-static
pnpm add git-static
yarn add git-static
bun add git-static
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.15 |
| Published | 2015-03-04 |
| First published | 2012-09-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 115 |
| Author | Mike Bostock |
| Maintainers | mbostock |

## Links

- npm: https://www.npmjs.com/package/git-static
- Repository: http://github.com/mbostock/git-static
- Homepage: https://github.com/mbostock/git-static
- Issues: https://github.com/mbostock/git-static/issues
- npm.io page: https://npm.io/package/git-static

## Dependencies (1)

- [mime](https://npm.io/package/mime.md) 1.2.x

## Recent versions

- 0.0.15 (latest) — 2015-03-04
- 0.0.14 — 2014-07-15
- 0.0.13 — 2014-05-09
- 0.0.12 — 2014-02-21
- 0.0.11 — 2013-08-02
- 0.0.10 — 2013-05-15
- 0.0.9 — 2013-02-11
- 0.0.8 — 2013-02-05
- 0.0.7 — 2013-02-05
- 0.0.6 — 2013-01-26
- 0.0.5 — 2012-09-11
- 0.0.4 — 2012-09-11
- 0.0.3 — 2012-09-03
- 0.0.2 — 2012-09-02
- 0.0.1 — 2012-09-02

## README

# Git Static

Serve static files backed by Git.

## Installation

After running `npm install`, you'll want to initialize a bare Git repository to hold the static files:

```bash
mkdir repository
cd repository
git init --bare
```

Then, push from your source Git repository the files you want to serve:

```bash
cd ~/Development/other
git remote add static ~/Development/git-static/repository
git push static master
```

Now you can launch the server!

```bash
node node_modules/git-static/examples/server --repository repository
```

Go to <http://localhost:3000/HEAD/path/to/file.html> to view a file from the source repository. You can replace `HEAD` with a specific commit version, or with short names and aliases for commits such as "0ad4156" or "HEAD~1".

---
_Source: https://npm.io/package/git-static · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
