https://github.com/ilsuono/git-remote-g2g
Git-to-Git, without middleman. Clone straight from your PC without exposing public address.
https://github.com/ilsuono/git-remote-g2g
git git-helper libp2p
Last synced: 9 months ago
JSON representation
Git-to-Git, without middleman. Clone straight from your PC without exposing public address.
- Host: GitHub
- URL: https://github.com/ilsuono/git-remote-g2g
- Owner: ilsuono
- Created: 2023-10-11T20:07:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-23T07:24:35.000Z (over 1 year ago)
- Last Synced: 2025-01-24T08:44:05.315Z (over 1 year ago)
- Topics: git, git-helper, libp2p
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# g2g
A set of command-utilities for hosting git-based code repositories. Ideally, you can host your git server in your home computer, and the server is accessible from every point in the internet, without uploading the codes to a centralized archive. The helpers are based on libp2p and no additional router configurations are needed.
## Usage
On the server-side:
```sh
>> git g2g
Host ID: QmafQq3BfH1b1hF6p8tcvnn5opxmPuPQQtuSesRzSgBvKY
```
And then on the client side:
```sh
>> git clone g2g://QmafQq3BfH1b1hF6p8tcvnn5opxmPuPQQtuSesRzSgBvKY/.git
```
## Installation
### Install from built binaries
```sh
curl -sL -O https://github.com/jayay98/git-remote-g2g/releases/latest/download/git-remote-g2g_Darwin_x86_64.tar.gz
mkdir ~/g2g
tar xvzf git-remote-g2g_Darwin_x86_64.tar.gz -C ~/g2g
export PATH=$PATH:$HOME/g2g
which git-g2g && which git-remote-g2g
```
### Build from source
```sh
git clone https://github.com/jayay98/git-remote-g2g.git
cd git-remote-g2g
make install
```