Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.38 KB

README.md

File metadata and controls

44 lines (36 loc) · 1.38 KB

A fork of deno-git-server

A configurable git server written in Deno. With this code you can program a git-server running on deno yourself. If you are looking for a complete out-of-the-box software to run a deno git-server based on this code, you may take a look at hybriqor git repo server.

Changes to original deno-git-server

  • IP whitelist now optional
  • Basic auth supported
  • Hand back request to parent class if accessing client is not a git client (eg a web browser)
  • Display console message from server in git push console output

Install

  1. Install Git and Deno
  2. Clone this repo, change into its directory
  3. Type this in your console
deno run -A --unstable GitServer.js

runs on localhost:7005 by default

Usage

make a directory and change into it, init git, create a file, make a commit, set remote origin and push.

mkdir test
cd test
git init
touch test.txt
git add .
git commit -m 'initial commit'
git remote add origin http://localhost:7005/test
git push --set-upstream origin master

or

git push http://localhost:7005/test master

Links