Can this be done by putting the nuget package in the git repository?
No, the repo is intended for source control, it is not a binary referent, for example, the Nuget repository.
See " Installing the nuget Package from GitHub "
With Nuget there is no way to get the preview version from the git repository.
, NuGet, , , GitHub submodule git, .net .