gitfetcher

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 5 Imported by: 0

README

Git fetcher

[!NOTE] WIP: this library is usable but its API may change in breaking ways.

A lightweight tool to create local copies of remote repositories.

Highlights:

  • Simple file-based configuration
  • gitweb-compatible local repositories
  • Automation-friendly, including secret handling

Quickstart

Sample configuration in txtpb format:

# .gitfetcher
github {
  # Sync any public repository by name.
  sources { name: "golang/go" }
  sources { name: "mtth/gitfetcher" }

  # Sync all repositories available to a given authentication token.
  sources {
    auth {
      token: "$GITHUB_TOKEN" # Read from the environment at runtime
      include_forks: false # This is the default, and can be overridden
    }
  }

  # More sources...
}

Then run gitfetcher sync . in the folder containing the above configuration.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package gitfetcher creates local mirrors from remote git repositories.
Package gitfetcher creates local mirrors from remote git repositories.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL