How to link a package locally into my Swift project?

You don't have to push to a git repo. There two ways to link to a package locally

Option 1:

Option 2: