diff options
| author | srdusr <[email protected]> | 2022-12-13 19:24:16 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2022-12-13 19:24:16 +0200 |
| commit | 110e0eaff0f9a1c21d63f8b9c2418ebdc90b6603 (patch) | |
| tree | de97136c03679842ea422fa452e1f5c907a53f48 | |
| parent | 6fb8d87f3ab5b8c58f9b0d5c2b13927183c1200e (diff) | |
| download | notes-110e0eaff0f9a1c21d63f8b9c2418ebdc90b6603.tar.gz notes-110e0eaff0f9a1c21d63f8b9c2418ebdc90b6603.zip | |
Add syntax for adding submodules into dotfiles
| -rw-r--r-- | tools/git.md | 19 |
1 files changed, 13 insertions, 6 deletions
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 |