Downloading zip file

when i try to select any other branch other than master and download the zip file it downloads the master branch code … ehy does it happen??

1 Like

There seems to be a bug at the moment, you’re not the only one to hit it:

The second post in that thread has a workaround.

I am curious about how this gets reported and when it will be fixed. The work-around seems to be to copy the URL and edit it for the branch you need.

All branches now download master
https://github.com/..../archive/refs/heads/master.zip

The only difference in the URL is the name of the branch
https://github.com/..../archive/refs/heads/NAME_OF_BRANCH.zip

Try by adding zipball in the url, for example

If the repository is https://github.com/octocat/Hello-World and you want to download the test branch tape this url :point_right: https://github.com/octocat/Hello-World/zipball/test

1 Like