Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Download zip" button doesn't get LFS files #1

Open
GadgetAngel opened this issue May 21, 2020 · 0 comments
Open

"Download zip" button doesn't get LFS files #1

GadgetAngel opened this issue May 21, 2020 · 0 comments

Comments

@GadgetAngel
Copy link
Owner

GadgetAngel commented May 21, 2020

A repository with LFS data can be cloned with the LFS data being pulled down (i.e., git clone command), but the 'Download ZIP' button' on GitHub doesn't include the large files, only the pointers. "Download zip" actually downloads the ".gitattributes" file and you can observe any LFS file type with it.

This is an issue with GitHub, and not the open source Git LFS client.

Keep in mind that Git LFS is an extension on top of Git, so it's completely expected that git tools need to be updated to take advantage of it.

I found four work-a-rounds but the first two are not as convenient as the 'Download ZIP' button BUT the 3rd and 4th are as convenient as the 'Download ZIP' button:

  1. You also can navigate with web browser to any file Stored with Git LFS file in github, then click mouse right button on top of "view raw" link and select "Save link as" item with the popup menu, then you get the real file and not the pointer.
  2. You also can navigate with web browser to any file Stored with Git LFS file in GitHub, then if "view raw" link is not there but "Download" button is available for the file use the "Download" button. You will have to do this for each file in the repository.
3. select the "Download or Clone button" and press the paste to clipboard button 
so you can place the URL for the GitHub repository to the clipboard. 
Now Open Git Bash.
Change the current working directory to the location where you want the cloned directory.
Type git clone, and then paste the URL you copied earlier.
$ git clone https://github.com/GadgetAngel/SKR-V1.4-Stepper-Driver-Jumper-Configuration-Manual.git
Press Enter to create your local clone.
Open Windows File Explorer and locate the local clone.

4. select the "Download or clone Button" and 
mouse right click on the "Download Zip" when the pop up window displays
select "Save link as..." and save to you local drive. 
Now the ZIP file will have the whole repository in the zip file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant