Managing Files
This guide covers adding files to existing overlays and syncing changes back to overlay sources.
Adding files to an overlay
Section titled “Adding files to an overlay”The add command copies new files to an existing overlay source, replaces the originals with symlinks, and auto-commits/pushes the changes:
# Add a single filerepoverlay add my-overlay newfile.txt
# Add multiple filesrepoverlay add my-overlay file1.txt file2.txt .config/settings.jsonPreview before adding
Section titled “Preview before adding”Use --dry-run to see what would happen without making changes:
repoverlay add my-overlay config.json --dry-runSyncing changes back
Section titled “Syncing changes back”If you've modified overlay files in your repo (e.g., edited a symlinked config), the sync command copies those changes back to the overlay source:
repoverlay sync my-overlayrepoverlay sync my-overlay --dry-runThis is useful when you've tweaked a config in one repo and want to propagate the change to all repos using that overlay.