repoverlay
Overlay config files into git repositories without committing them. Files are symlinked (or copied with --copy) from overlay sources and automatically excluded via .git/info/exclude.
Quick Reference
| Task | Command |
|---|---|
| Apply overlay | repoverlay apply <source> |
| Check status | repoverlay status |
| Remove overlay | repoverlay remove <name> |
| Remove all | repoverlay remove --all |
| Update from remote | repoverlay update |
| Restore after git clean | repoverlay restore |
| Create overlay | repoverlay create <name> |
| Create local overlay | repoverlay create --output <path> |
| Add files to overlay | repoverlay add <name> <files> |
| Sync changes back | repoverlay sync <name> |
| Switch overlays | repoverlay switch <source> |
| Browse available overlays | repoverlay browse |
Concepts
repoverlay manages four kinds of objects:
- Overlay — a set of config files applied to a repo. Lifecycle:
create→apply→update→remove. - Source — a configured location (GitHub repo) to find overlays. Lifecycle:
source add→source list→source remove. - Cache — local clones of GitHub repos used by overlays. Managed automatically on
apply; inspect withcache list, clean withcache remove --all. - File — an individual file within an overlay. Managed via
addandsync.
Installation
Homebrew (macOS/Linux)
Shell installer (macOS/Linux)
|
PowerShell installer (Windows)
irm https://github.com/tylerbutler/repoverlay/releases/latest/download/repoverlay-installer.ps1 | iex
Cargo
Usage
Apply an overlay
# From local directory
# From GitHub (default branch, specific ref, or subdirectory)
# From overlay repository
# Options
Remove overlays
Check status
Update remote overlays
Restore after git clean
Create overlays
# Detect org/repo from git remote
# Explicit path
# Include specific files
# Local output (no overlay repo)
# Preview / overwrite
Add files to an existing overlay
Copies files to the overlay source, replaces originals with symlinks, and auto-commits/pushes.
Sync changes back
Switch overlays
Replace all existing overlays with a new one:
Manage cache
Overlay Configuration
Create a repoverlay.ccl in your overlay directory:
overlay =
name = my-config
/= Rename files when applying
mappings =
.envrc.template = .envrc
vscode-settings.json = .vscode/settings.json
/= Symlink entire directories as a unit
directories =
= .claude
= scratch
mappings — Rename files during apply (source = destination).
directories — Directories to symlink (or copy) as a unit rather than walking individual files. Useful for directories like .claude/ that should be managed atomically.
Without a config file, all files are symlinked with the same relative path.
License
MIT