Perhaps set up a development environment instead of a production site? You can clone repos directly into the plugins directory. Plus, it won’t affect data on your production site and won’t cause downtime to your users when you rebuild. See Discourse Meta - dev-install guides for all topics on how to set up a dev environment.