book
book copied to clipboard
Explain what "forge remove" does more specifically
Removing a git submodule properly involves quite a few steps:
# Remove the submodule entry from .git/config
git submodule deinit -f path/to/submodule
# Remove the submodule directory from the superproject's .git/modules directory
rm -rf .git/modules/path/to/submodule
# Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule
git rm -f path/to/submodule
It would be helpful to mention whether forge remove performs all of the steps above, or just a combination of them, in the Removing dependencies section.
This is better suited for the command reference if anywhere
Oh, yes. Should we move this to the foundry repo?