From e08f291f6f2c45c6fe9236a733791fcc8a3cdb82 Mon Sep 17 00:00:00 2001 From: Mohammed Saeed Khaled Ramadan <155439384+Saeedzx6@users.noreply.github.com> Date: Fri, 25 Sep 2026 04:29:54 +0300 Subject: [PATCH] Document multigit for overlaid dotfile repositories (closes #105) Added section on overlaying multiple repositories using multigit. --- tips.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tips.md b/tips.md index 6c0b0f0..ae3ca5a 100644 --- a/tips.md +++ b/tips.md @@ -22,6 +22,14 @@ If you get fed up with submodules, many people prefer which lets you merge subtrees (other repositories) into one Git repository, and later split and push changes back out. +## Overlay multiple repositories + +If your dotfiles are split across several separate repositories that need to +land in the same directory tree, [multigit](https://github.com/capr/multigit) +is a tool built for exactly that: it checks out multiple git repositories +overlaid onto the same directory, so each component stays in its own repo +while ending up in the right place on disk. + ## Different branches for different boxes If you use multiple machines that are slightly different, you can have a branch for each one and pull changes between them. For example, you may want to use your text editor configuration on both mac and linux hosts, but need different shells settings on each.