Skip to content

Applying Overlays

This guide covers the different ways to apply overlays to a git repository.

Apply an overlay from a local directory:

Terminal window
repoverlay apply /path/to/overlay

Apply from a GitHub repository:

Terminal window
repoverlay apply https://github.com/owner/repo

By default, repoverlay applies to the current directory. Use --target to specify a different repository:

Terminal window
repoverlay apply ./overlay --target /path/to/repo

repoverlay auto-generates a name from the source. Use --name to set a custom name:

Terminal window
repoverlay apply ./overlay --name my-config

The name is used to identify the overlay in status, remove, and other commands.

Use --copy to copy files instead of creating symlinks:

Terminal window
repoverlay apply ./overlay --copy

This is useful when symlinks aren't supported or when you want independent copies that won't change when the source is modified.

Terminal window
# Specific branch
repoverlay apply https://github.com/owner/repo --ref develop
# Tag (via URL path)
repoverlay apply https://github.com/owner/repo/tree/v1.0.0

Apply only a subdirectory of a GitHub repository:

Terminal window
repoverlay apply https://github.com/owner/repo/tree/main/overlays/rust