-
-
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-sync
git clone https://github.com/AkashRajpurohit/git-sync.git
cd git-sync
go install
go build
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
restart: unless-stopped
docker-compose up -d
NOTE: If you are using docker, then it is best to use the inbuilt cron functionality and keep the service running in background and syncing up your repositories periodically.