Pulling remote repository and pushing to another repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vladimir Smagin 0656652945 fix archive deb package 3 weeks ago
build/deb create DEBIAN if absent 3 weeks ago
vendor added log leveling 2 months ago
.gitignore ignore archives 3 months ago
Dockerfile add jenkins pipeline and package building 3 weeks ago
Jenkinsfile fix archive deb package 3 weeks ago
README.md added log leveling 2 months ago
go.mod added log leveling 2 months ago
go.sum added log leveling 2 months ago
main.go little refactor 1 month ago
sync.yaml successfully running syncs 3 months ago
types.go successfully running syncs 3 months ago

README.md

go-git-mirror - git mirroring tool

Clone remote repository, create repository somewhere in your local network and modify yaml config. Program pull remote and push to local.

Build sources

Binaries

Look to releases tab and download.

Ubuntu\Debian repository here http://deb.blindage.org

Commandline options

  -file string
    	Set sync filename
  -help
    	Show help
  -loglevel string
    	Set logging level (default "notice")

Sample config file

Run ./go-git-mirror -file my_config.yaml

Sample config:

---
# set auth methods for git repositories
auth:
    # auth method name, attach it to repository
  - name: github
    username: git
    privateKeyPath: "/home/vlad/.ssh/mykey.pem"
  - name: gitea
    username: "vlad"
    password: "ZdravstvuyJopaNoviyGod"

# set sync units array
sync:
  - name: Sync library
    # path to cloned git repository
    path: git/my-library
    # set source url and attach auth method
    source:
      repo: github.com:21h/my-pretty-library.git
      auth: "github"
    # set destination url and attach auth method
    destination:
      repo: https://git.blindage.org/my-pretty-library.git
      auth: "gitea"

Copyright by Vladimir Smagin (21h) 2019
http://blindage.org email: 21h@blindage.org
Project page: https://git.blindage.org/21h/go-git-mirror