This task can be performed using Hycode
Enabling developers to save, share and reuse code.
Best product for this task

Hycode
dev-tools
Hycode is a browser application that gives developers a secure and centralised vault to save their frequently used code snippets. Hycode also supports teams of developers so they can be aligned, contribute and reuse shared, version-controlled code.
Save Code SnippetsVersion-Control SnippetsPrevent Code RewritesStreamline Development WorkflowAlign Development Team

What to expect from an ideal product
- Save private code snippets in an encrypted vault that only team members can access
- Share snippets directly through browser links instead of emails or chat apps
- Keep track of who changed what with version control and edit history
- Sort snippets into folders and tag them for quick team-wide searching
- Access the same up-to-date code across all team members without copy-paste mistakes