hubsync

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

hubsync

hubsync is a command-line utility designed to facilitate the synchronization of GitHub repositories locally.

Usage

To synchronize public repositories from a GitHub user:

GITHUB_TOKEN=xxxxxxxx  hubsync --user=username --dir=target_directory

To synchronize all repositories, including private ones, from a GitHub organization:

GITHUB_TOKEN=xxxxxxxx  hubsync --user=username --dir=target_directory --private
Flags
  • --user: Specifies a GitHub user account from which to fetch repositories.
  • --org: Specifies a GitHub organization from which to fetch repositories.
  • --dir: Sets the target directory for cloned or updated repositories. Defaults to the current directory if not specified.
  • --private: Includes private repositories in the fetch operation.
  • --archived: Includes archived repositories in the fetch operation.

Prerequisites

  • Go (Golang): Ensure Go installed on your system to build hubsync.

  • Git: Git must be installed on your system for cloning and updating repository operations.

  • GitHub Personal Access Token: For private repository synchronization, a GitHub personal access token with repo scope is required.

  • Nix (optional): Nix can be used to build the binary.

Build:

go build

Install:

With Go
go install github.com/aevox/hubsync@latest
With Nix
nix profile add github.com/aevox:hubsync

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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