EEVblog Electronics Community Forum

Products => Computers => Programming => Topic started by: RoGeorge on April 03, 2023, 09:32:23 am

Title: git clone vs download zip from github
Post by: RoGeorge on April 03, 2023, 09:32:23 am
For this webpage https://github.com/esp8266/esp8266-wiki/wiki

If i download the zip file from Code -> Download ZIP button in https://github.com/esp8266/esp8266-wiki, I don't get the docs seen in the webpage https://github.com/esp8266/esp8266-wiki/wiki, but if I get the wiki by git clone https://github.com/esp8266/esp8266-wiki.wiki.git then I get the docs.

I was expecting for the zip download to pack the same files as a git clone would retrieve, but in this case each method retrieves a totally different content.  Both downloads are from the same github repository:  https://github.com/esp8266/

Why so?  I thought zip download is for those who don't have git, same files in different format.
Title: Re: git clone vs download zip from github
Post by: eutectique on April 03, 2023, 09:44:44 am
You are retrieving different branches, perhaps?
Title: Re: git clone vs download zip from github
Post by: gamalot on April 03, 2023, 12:33:38 pm
Wiki is not part of the code, you can see it from the tabs on GitHub's repository page.

Title: Re: git clone vs download zip from github
Post by: RoGeorge on April 03, 2023, 12:57:55 pm
Doh, I was not aware about the separation, thanks!  :)
Title: Re: git clone vs download zip from github
Post by: alm on April 03, 2023, 01:06:55 pm
There are two git repos:

Under the code tab: https://github.com/esp8266/esp8266-wiki.git

Under the wiki tab:
https://github.com/esp8266/esp8266-wiki.wiki.git (note the extra .wiki)

The former contains what's under the code tab, and the second what's under the wiki tab. The option to download a zip file is only available under the code tab. I figured non-developers, who can't use git, or build scripts / package managers, are more likely to download the code rather than the wiki.

In this case it's confusing because both repos contain documentation, but probably in a different format or different contents.