Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,22 @@ protections in place.

1. Add the package as a submodule with
`git submodule add <git-url> packages/<package-name>`

## Remove a package

1. Remove the submodule entry from `.gitmodules` file
2. Remove the submodule entry from `.git/config`
3. Run `git rm --cached packages/<package-name>`
4. Remove the submodule directory: `rm -rf packages/<package-name>`
5. Remove the submodule directory from `.git/modules/`: `rm -rf .git/modules/packages/<package-name>`
6. Commit the changes: `git commit -m "Remove <package-name> submodule"`


## Update submodules
1. Run `git submodule update --remote --merge`
2. Commit the changes: `git commit -am "Update submodules"`
3. Push the changes: `git push origin main`
4. If you have made changes to the submodules, make sure to push those changes to their respective repositories as well.

## Remove Local Submodules
1. Run `git submodule deinit -f -- packages/<package-name>`
8 changes: 5 additions & 3 deletions example/lib/app/app.locator.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 2 additions & 18 deletions example/lib/app/app.logger.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading