From 110e0eaff0f9a1c21d63f8b9c2418ebdc90b6603 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 13 Dec 2022 19:24:16 +0200 Subject: Add syntax for adding submodules into dotfiles --- tools/git.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/git.md b/tools/git.md index c4152b3..a56a8c1 100644 --- a/tools/git.md +++ b/tools/git.md @@ -46,12 +46,19 @@ ```bash config checkout ``` -- - - - -config submodule add https://github.com/user/repo.git .path/to/repo - -config submodule update --remote --merge - +#### Use submodules to sync other repos into dotfiles +1. Add a submodule to dotfiles +```bash +config submodule add https://github.com/user/dotfiles.git .path/to/dotfiles +``` +2. Update submodules to sync to dotfiles +```bash +config submodule update --init --recursive +``` +3. Config push +```bash +config push +``` - - - ### Basic commands -- cgit v1.2.3