Heyo community,
I got a simple question that I can’t find an answer to.
I’m trying to download an entire branch as a tar.gz file. Normally you’d just go to https://gitlab.com/example/example/-/archive/main/example-main.tar.gz
and download that file. However, the repository it’s in is private. So I made a deploy token and tried https://launcher:myToken@gitlab.com/example/example/-/archive/main/example-main.tar.gz
, again with no success (it just prompts me to log in).
So, how to do it, assuming there is a way to do it at all?
Thanks in advance!
PS: The use case of this is a launcher downloading the source code for an internal app and then extracting it automatically. However, I don’t want to bother everyone to mess with git or send my access token for the API all around (it’s an electron app, so there’s no real way of hiding it.)