CopyGitHubRepo

0.4.0

PowerShell module for safely copying and migrating GitHub repositories with clean Snapshot or history-preserving FullHistory modes.

Minimum PowerShell version

7.4

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name CopyGitHubRepo

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name CopyGitHubRepo

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 infoconex. Licensed under the MIT License.

Package Details

Author(s)

  • infoconex

Tags

GitHub Git Repository Copy Migration Automation DevOps PowerShell Windows Linux MacOS

Functions

Copy-GitHubRepository Get-GitHubRepository Start-CopyGitHubRepositoryWizard Test-GitHubRepositoryMigration

PSEditions

Core

Dependencies

This module has no dependencies.

Release Notes

### Added

- Added opt-in GitHub Pages configuration restoration with `-RestorePages`, binding execution to immutable reviewed Pages evidence captured during planning and revalidating relevant source state before destination mutation.
- Added restoration and independent verification for supported GitHub-side Pages configuration, including Actions-based publishing and representable branch/path publishing without treating copied site or workflow files as proof that Pages configuration was preserved.
- Added controlled Pages activation behavior so copied Pages workflows do not silently become authoritative migration evidence or enable unsupported GitHub-side state outside the reviewed restoration path.
- Added same-name and archive-and-replace custom-domain handoff with fail-closed repository identity safeguards, deliberate archive release/replacement claim ordering, independent readback, and durable recovery/provenance evidence for partial handoff failures.
- Added guided-wizard support, command/reference documentation, operational guidance, contract tests, and controlled GitHub end-to-end coverage for the supported Pages migration paths.

### Changed

- Clarified that external DNS records, DNS ownership-verification records, secret values, account/organization domain ownership, certificate provisioning, and externally dependent HTTPS readiness are outside the migration contract and are reported rather than assumed complete.
- Clarified branch/path representability and failure behavior: CopyGitHubRepo does not invent substitute publishing branches or paths when the reviewed source Pages configuration cannot be represented safely at the destination.
- Extended migration verification and recovery reporting to distinguish migrated GitHub-side Pages state from externally observed DNS, domain-verification, certificate, and HTTPS readiness state.

FileList

Version History

Version Downloads Last updated
0.4.0 (current version) 12 9/3/2026
0.3.0 8 9/1/2026
0.2.0 6 8/31/2026
0.1.1 11 8/26/2026
0.1.0 11 8/23/2026