2018-06-21 22:23:53 +02:00
# Git Submodules
2018-08-29 07:18:24 +02:00
NetNewsWire uses [Git submodules ](https://git-scm.com/book/en/v2/Git-Tools-Submodules ) to include shared frameworks. At this writing (June 2018) they are DB5, RSCore, RSDatabase, RSWeb, RSTree, and RSParser.
2018-06-21 22:23:53 +02:00
2018-08-18 20:04:28 +02:00
After your first checkout:
git submodule init
2018-08-25 19:58:34 +02:00
git submodule update
2018-08-18 20:04:28 +02:00
2018-06-21 22:23:53 +02:00
To add a submodule:
git submodule add https://github.com/username/path
2018-06-21 22:26:37 +02:00
(It’ s unlikely you’ ll need to do that. Adding a submodule is done super-rarely, if ever, and it’ s Brent’ s call.)
2018-07-14 21:32:11 +02:00
To update all submodules to their latest commits:
2018-06-21 22:26:37 +02:00
2018-07-14 21:32:11 +02:00
git submodule foreach git pull origin master
2018-06-23 20:35:55 +02:00
2019-04-16 00:04:58 +02:00
If you messed around with those projects and want to reset them to where the current project thinks
they should be, you can use the command:
git submodule foreach --recursive git reset --hard