https://github.com/pprobst/monorepo
Messing around with a monorepo.
https://github.com/pprobst/monorepo
Last synced: 16 days ago
JSON representation
Messing around with a monorepo.
- Host: GitHub
- URL: https://github.com/pprobst/monorepo
- Owner: pprobst
- Created: 2025-03-19T10:49:57.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-19T12:20:20.000Z (11 months ago)
- Last Synced: 2025-03-19T12:22:48.330Z (11 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# monorepo
Messing around with a monorepo.
## Adding new projects
### Option 1: as a subdirectory
```
uv init my_project
git add my_project
git commit -m "feat: add new demo my_project"
git push
```
### Option 2: as a submodule
```
git submodule add -b main git@github.com:path/to/my_project.git
git add .gitmodules my_project
git commit -m "feat: add new demo my_project"
git push
```
### Option 3: as a subtree
```
# Add the remote for the project repository
git remote add -f my_project_remote git@github.com:path/to/my_project.git
# Add the subtree, prefixed with the folder name you want
git subtree add --prefix=my_project my_project_remote main --squash
# Later, to pull changes from the project repository
# git subtree pull --prefix=my_project my_project_remote main --squash
# Or to push changes to the project repository
# git subtree push --prefix=my_project my_project_remote main
```