git archive -o foo-1.0.tar.gz --remote=ssh://........./repo.git v1.0
(where v1.0
is an example tag name, or just name a branch here...)USE_GITHUB
? If you intend to use this for a port, this won't work. I mean, fetching anything from a private repo needs authentication. Although you could come up with a custom do-fetch
using the git-archive(1) method, you'd have to hardcode the credentials into the port, so this would kind of contradict the whole point of making a repository "private"? edit, wait, whyUSE_GITHUB
? If you intend to use this for a port, this won't work. I mean, fetching anything from a private repo needs authentication. Although you could come up with a customdo-fetch
using the git-archive(1) method, you'd have to hardcode the credentials into the port, so this would kind of contradict the whole point of making a repository "private"?![]()
do-fetch
target is the way to go. ThanksIf you want to keep development of that code private, you could create a public repository and only merge your release code to that. Then you can use the public repository (with the released code) for distribution.