Author Topic: git clone vs download zip from github  (Read 5464 times)

0 Members and 1 Guest are viewing this topic.

Offline RoGeorgeTopic starter

  • Super Contributor
  • ***
  • Posts: 8581
  • Country: ro
git clone vs download zip from github
« 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.

Offline eutectique

  • Frequent Contributor
  • **
  • Posts: 638
  • Country: be
Re: git clone vs download zip from github
« Reply #1 on: April 03, 2023, 09:44:44 am »
You are retrieving different branches, perhaps?
 

Online gamalot

  • Super Contributor
  • ***
  • Posts: 1962
  • Country: au
  • Correct my English
    • Youtube
Re: git clone vs download zip from github
« Reply #2 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.

I'm a poet, I didn't even know it. |  https://youtube.com/@gamalot | https://github.com/gamalot
 
The following users thanked this post: RoGeorge

Offline RoGeorgeTopic starter

  • Super Contributor
  • ***
  • Posts: 8581
  • Country: ro
Re: git clone vs download zip from github
« Reply #3 on: April 03, 2023, 12:57:55 pm »
Doh, I was not aware about the separation, thanks!  :)

Offline alm

  • Super Contributor
  • ***
  • Posts: 2903
  • Country: 00
Re: git clone vs download zip from github
« Reply #4 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.
 
The following users thanked this post: RoGeorge


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->