Anytime you create a codesnippet, Xcode stores it in a local folder (~/Library/Developer/Xcode/UserData/CodeSnippets). You can use xcresource snippet open to browse them.
Thanks to xcresource, you can move your snippets to a git repository to back them up and install them again later locally. It is considered as a good pratice to rename them with explicit names.
Consider deleting your local snippets once copied, before installation, to avoid duplications:
Installing snippets from different sources
When installing snippets, you can specify a namespace parameter:
A namespace acts as an installation folder. The snippets will be installed inside it. If the namespace already exists, it is replaced. Thus, you can use namespace to install snippets from different sources:
A word on the snippet namespace implementation
When installing snippets, xcresource stores the namespace you specified in the summary of your snippets:
Be careful to not override it when editing your snippets using Xcode.
Try to create your own Xcode snippets repository and display them in Xcode of course!