GithubHelp home page GithubHelp logo

git-remote-gemini's Introduction

# git-remote-gemini

This is a Git remote helper that allows for basic cloning of git repos over the
Gemini protocol. Build it and install it in your $PATH somewhere and then run
`git clone gemini://<domain>/<repo>.git`

You must be running a Gemini server that detects a Git repo and understands the
following queries:

## List

`gemini://<domain>/<repo>.git?list`

The server must respond with the output of:

`git for-each-ref --format=%(objectname) %(refname) refs/heads/`

and with an optional line indicating the default branch (e.g. `master`) in this
format:
`@refs/heads/<branch> HEAD`

and ending with an empty line.

## Fast Export

`gemini://<domain>/<repo>.git?fast-export=<ref>`

The server must respond with the output of:

`git fast-export <rev>`

## Notes

This does not support marks files or refspecs yet. It is just a "dumb" clone
method as mentioned in the Git documentation.

git-remote-gemini's People

Contributors

clehner avatar dhuseby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

clehner

git-remote-gemini's Issues

Signed git commits and tags

git fast-export drops the signature of gpg-signed git commits. This results in commits having a different hash than expected. Can we specify git-remote-gemini to use another command type? For example, the connect capability with native git upload-pack.

Static hosting

git-remote-gemini's current interface requires servers to parse the query string in order to respond. Some Gemini publishers may only be publishing static files, like on some current hosting sites. Git's native HTTP(S) interface ("Dumb protocol") can work with static files. Effectively the server does not have to do anything special, just serve the files from the git repository requested by the client, and most of the protocol functionality is in the client. Should we try to support fetching from static gemini repos?

Self-hosting

Is there an official Gemini capsule and/or git-remote-gemini repo for git-remote-gemini?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.