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 e65127df13
added log leveling
2 weeks ago
vendor added log leveling 2 weeks ago
.gitignore ignore archives 2 weeks ago
README.md added log leveling 2 weeks ago
go.mod added log leveling 2 weeks ago
go.sum added log leveling 2 weeks ago
main.go added log leveling 2 weeks ago
sync.yaml successfully running syncs 2 weeks ago
types.go successfully running syncs 2 weeks 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