Skip to content

Installation

Akash Rajpurohit edited this page Aug 12, 2024 · 10 revisions

Download Pre-built Binaries

The simplest way is to install the pre-built binaries which are available for various platforms. You can download the latest release from the Releases page.

Using go get

Prerequisites

  • Go (version 1.22 or later)
  • Git
go get github.com/AkashRajpurohit/git-sync

Build from source

git clone https://github.com/AkashRajpurohit/git-sync.git
cd git-sync
go install
go build

With Docker

The docker images are available on GitHub package registry and can be found here: https://github.com/AkashRajpurohit/git-sync/pkgs/container/git-sync

docker run --rm \
  --name=git-sync \
  -v ~/.config/git-sync/config.yaml:/git-sync/config.yaml \
  -v ~/git-backups:/backups \
  ghcr.io/akashrajpurohit/git-sync:latest

Or you can use the docker-compose.yml file to run the container.

services:
  git-sync:
    image: ghcr.io/akashrajpurohit/git-sync:latest
    volumes:
      - ~/.config/git-sync/config.yaml:/git-sync/config.yaml
      - ~/git-backups:/backups
docker-compose up -d

Clone this wiki locally