项目作者: movsb

项目描述 :
A simple git server, using only your local git installation.
高级语言: Go
项目地址: git://github.com/movsb/sgits.git
创建时间: 2019-06-04T11:56:30Z
项目社区:https://github.com/movsb/sgits

开源协议:

下载


SGITS

A Simple GIT Server, using only your local GIT installation.

Example Configuration File

Create a YAML file named sgits.yml in the working directory of SGITS.

For example:

  1. # http listen address
  2. listen: :3558
  3. # root directory of your projects
  4. root: /home/tao/code
  5. # username to git server
  6. username: name
  7. # password for username
  8. password: pass

Now, SGITS will listen on :3558 as a GIT server.

Accessing the GIT server

Because GIT server requires bare repositories (without working directory), you should first create it before pushing:

  1. # at projects root
  2. $ git init --bare repo

Now, you can push and clone:

  1. # first add as remote
  2. $ git remote add sgits http://localhost:3558/repo
  3. # push to remote
  4. $ git push -u sgits master

Note: No suffix .git is required.

Security

For security, you can set username and password in your configuration file.

If username and password are set:

  • Authenticated Read
  • Authenticated Write

If username and password are NOT set:

  • Anonymous Read
  • Authenticated Write