-
-
Notifications
You must be signed in to change notification settings - Fork 32
Installation
Akash Rajpurohit edited this page Aug 12, 2024
·
10 revisions
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.
go get github.com/AkashRajpurohit/git-syncgit clone https://github.com/AkashRajpurohit/git-sync.git
cd git-sync
go install
go buildThe 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:latestOr 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:/backupsdocker-compose up -d