Github - how to download hdf5 file? - github

How to download raw file in GitHub?
I am trying to download a concrete (RAW) file.
The GitHub reports size 16.7 MB (see screenshot bellow), when clicked to RAW it only displays text containing few bytes.
Screen

You can use git-lfs to download content from this pointer files.
Install git-lfs, for mac use brew install git-lfs.
Clone the repo.
Run the command git lfs pull.
Reference : git-cloning-giving-pointer-file

Solution for this particular problem can be to download the files from this repository
https://drive.google.com/drive/folders/1cJLPgGfEuFAQzBKbXQtSGXxLXssw1D9f
Anyway, if there is any way how to download HDF5 files from github, it would be very useful.

Related

Binary file uploaded with Git LFS doesn't work

So, yesterday I wanted to upload a MSI file (for my Electron video game) on GitHub, but the file was over 100MB, so I used Git LFS to upload it.
Then, I downloaded the MSI file from GitHub to see if it works. It should've shown this:
But, instead I get this:
This is my .gitattributes file:
*.exe filter=lfs diff=lfs merge=lfs -text
*.msi filter=lfs diff=lfs merge=lfs -text
This is my repo: #EntityPlantt/parakeet-simulator
What do I do?
Edit
It turns out that the file looked something like this:
version https://git-lfs.github.com/spec/v1
oid sha256:50937b5a534292b38a0329c305d12b2da99b86281fd8841ac07f8bf0f38359fb
size 177451008
It wasn't even binary!
When I download it thru GitHub Pages with this link, the above thing shows up, and when I download it thru GitHub's Raw option, via this link, it works. But, why?
When using Git LFS, you need to have run git lfs install at least once on your machine (for each individual user). That installs the hooks and filters required for Git LFS to work.
If you haven't done that, do that, and then you should be able to fix your repository by doing git lfs pull to pull the large files. If you're using a tarball or zip file link on GitHub, then you have to go into the settings and enable LFS support in archives, since by default LFS files are not included.

How to upload large files to stackoverflow that have no extension?

I'm trying to push my project to github yet it complains:
remote: error: File Godot.app/Contents/MacOS/Godot is 156.41 MB; this exceeds GitHub's file size limit of 100.00 MB
I tried downloading Git Large File Storage, but it seems to require a file extension to work. As you can see my file does not have an extension.
How can I upload it to github?
but it seems to require a file extension to work
Strange, considering git-lfs/git-lfs issue 712 does mention:
You can specify any filename or path in your repository.
You aren't limited to using file extensions.
You could also track a specific directory with git lfs track 'assets/*' or an entire directory tree with git lfs track 'assets/**/*'.
You could also track individual files specifically with git lfs track path/to/file, which will track only that file.
That being said, any generated executable (like a GotDot app one) would not, ideally, be pushed.

Git Pull But Only A Directory Not the Entire Repo

How to Download Only A Particular folder from GitHub.
I have a very slow Internet Connection and I am learning asp.net core.
The Tutorial requires code from this Link ->
https://github.com/aspnet/Docs/tree/master/aspnetcore/fundamentals/logging/index/sample2
So If I make a Git Pull Or Just Download the repo its a huge 800 Mb :(
I just wan't this little part
Downloading the zip remains the smallest archive you can download, since it does not include the full history of the repo.
And that archive does weight 780MB...
That being said, as described in "Download a single folder or directory from a GitHub repo", check if a service like DownGit can help.

How to upload more than 100 files at once in github?

I want to add a folder that has 713 files 150 folders inside it.
Uploading directly shows an error that I cannot upload more than 100 files at once.
Is there any chance I could upload a .rar file and then later extract in github?
There is no way to send an archived file and extract it in GitHub. However, Like Fake Name said, you need to download Git on your system and use it to send your files to GitHub. You can go through the tutorials on Git here.
Yes, you can't upload more than 100 files using the Graphic Interface.
You can instead upload a .rar instead as you said, but it's not recommended. When you will try to update the repository you will find that you will re-upload all the .rar.
So what I recommend you to do is upload using the terminal (using terminal you can upload more than 100 files).
And for information on how you upload on GitHub using terminal, follow those steps:
https://help.github.com/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line

There is no "zip download" button to download source in .zip on github

I want to download this source file in the zip here:
https://github.com/xdtianyu/android-4.2_r1/tree/master/packages/apps/SoundRecorder
But there is no Zip Download button. There is a Zip Download button in the root directory of the repository:
https://github.com/xdtianyu/android-4.2_r1
But I don't want to download the whole repository. How can I download that single project (specific subdirectory)?
I read this topic but still, I can't Download source as the zip file:
Download single files from GitHub
How to download source in ZIP format from GitHub?
You can't download a subdirectory from GitHub as a zip file.
Some options are to
download the full zip and manually extract the subdirectory that you want, or
use git with sparse checkouts instead of downloading as a zip file.
This approach does download the entire repository into the .git directory, but your working copy will only contain the files and directories that you want.
For more information on sparse checkouts have a look at this answer.
Use DownGit; you can download individual files or directories, and even create download-link for them-
You can also configure properties of the download-file. See here for detailed usage.
Disclaimer: I fell into the same problem as the question-asker, could not find any proper solution, so I created this tool for my own use, and later made it available for everyone.