srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tools/git.md
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2022-12-13 19:24:16 +0200
committersrdusr <[email protected]>2022-12-13 19:24:16 +0200
commit110e0eaff0f9a1c21d63f8b9c2418ebdc90b6603 (patch)
treede97136c03679842ea422fa452e1f5c907a53f48 /tools/git.md
parent6fb8d87f3ab5b8c58f9b0d5c2b13927183c1200e (diff)
downloadnotes-110e0eaff0f9a1c21d63f8b9c2418ebdc90b6603.tar.gz
notes-110e0eaff0f9a1c21d63f8b9c2418ebdc90b6603.zip
Add syntax for adding submodules into dotfiles
Diffstat (limited to 'tools/git.md')
-rw-r--r--tools/git.md19
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