/gitsynchro

Primary LanguageGoThe UnlicenseUnlicense

gitsynchro

GitHub release (latest SemVer) GitHub go.mod Go version Go Report Card

  1. As a developer, I want to automatically push the default branch to somewhere else.
  2. As a developer, I want to automatically push all tags to somewhere else.

Run it locally

$ gitsynchro is a tool to synchronize git repos.

Usage:
  gitsynchro [flags]

Flags:
      --config string   config file (default: $HOME/gitsynchro.yaml or ./gitsynchro.yaml)
  -h, --help            help for gitsynchro

Config Locations

The application will look for the application in under the following paths:

  • $HOME/gitsynchro.yaml
  • $HOME/gitsynchro/gitsynchro.yaml
  • ./gitsynchro.yaml

In addition, it's possible to specify a custom path. You just need to specify the path as a command line flag like this: --config my-path/whatever.yaml

Configuration

repos:
  - name: very-good-repo
    path: /tmp/test
    defaultBranch: main
    destinations:
      - remoteName: test

ToDos

License

gitsynchro is free and unencumbered public domain software. For more information, see https://unlicense.org/ or the accompanying LICENSE file.