Skip to content

Commit 002ea2a

Browse files
committed
add subtree example command
Signed-off-by: maxwolfs <[email protected]>
1 parent 8ed2db4 commit 002ea2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/intro.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ In order to get all the different docs into one place and to render a comprehens
2020

2121
[The Power of Git Subtree by Nicola Paolucci](https://blog.developer.atlassian.com/the-power-of-git-subtree/?_ga=2-71978451-1385799339-1568044055-1068396449-1567112770)
2222

23+
```bash
24+
git subtree add --prefix {local directory being pulled into} {remote repo URL} {remote branch} --squash
25+
```
26+
2327
## Implications to subtree repositories structure
2428

2529
As the final output in this repository will be a statically generated website, the subtree docs repositories should only contain markdown and static files for visualisation.
@@ -28,7 +32,7 @@ As the final output in this repository will be a statically generated website, t
2832

2933
```jsx
3034
project
31-
├── static // static content
35+
├── static // static content
3236
├── blog // optional blog
3337
├── src // source files
3438
├── docs // the folder where all individual docs reside as subtree modules

0 commit comments

Comments
 (0)