Applying Overlays
This guide covers the different ways to apply overlays to a git repository.
Basic usage
Section titled “Basic usage”Apply an overlay from a local directory:
repoverlay apply /path/to/overlayApply from a GitHub repository:
repoverlay apply https://github.com/owner/repoTargeting a specific repo
Section titled “Targeting a specific repo”By default, repoverlay applies to the current directory. Use --target to specify a different repository:
repoverlay apply ./overlay --target /path/to/repoNaming overlays
Section titled “Naming overlays”repoverlay auto-generates a name from the source. Use --name to set a custom name:
repoverlay apply ./overlay --name my-configThe name is used to identify the overlay in status, remove, and other commands.
Copy mode
Section titled “Copy mode”Use --copy to copy files instead of creating symlinks:
repoverlay apply ./overlay --copyThis is useful when symlinks aren't supported or when you want independent copies that won't change when the source is modified.
GitHub-specific options
Section titled “GitHub-specific options”Branches and tags
Section titled “Branches and tags”# Specific branchrepoverlay apply https://github.com/owner/repo --ref develop
# Tag (via URL path)repoverlay apply https://github.com/owner/repo/tree/v1.0.0Subdirectories
Section titled “Subdirectories”Apply only a subdirectory of a GitHub repository:
repoverlay apply https://github.com/owner/repo/tree/main/overlays/rust