How to upload more than 100 files at once in github? - 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

Related

Download Directory from GitHub

Trying to download a folder from git.
I tried wget --no-parent -r http://WEBSITE.com/DIRECTORY and also without --no-parent - did not work. curl works fine with single files, I thought wget should get the folder - it does everything but that.
Tried many options as suggested Using wget to recursively fetch a directory with arbitrary files in it none worked
You should try:
git clone <SSH> or <HTTPS>
Maybe this can help you in a simple way:
DownGit
So, if you instead to use wget to download a directory, just try this.
It will pack your target directory into a .zip, so you can curlorwget it.
MinhasKamal/DownGit#github
In default, value of fileName and rootDirectory is set to the name of the downloading file or directory. If you do not want to add the directory itself in the zip, then set rootDirectory=false. Like: this link- https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/tree/master/res/images&rootDirectory=false, will download a file named images.zip; however the root directory- "images", will not be included in the zip.
If you want to download file- https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png with name- DownGitIcon.zip, then the link will be- https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png&fileName=DownGitIcon
By the way, I used to use SVN to download files/directory from a Git System by route the URL to its trunk. But it's very inconvenient.
A bit late but in case some one stumbles here later.
You can use following tools :
Download-Directory
DownGit
In both tools, you can just enter your url to direct download or create a download link.
For those who prefer GUI tools, there is another easy way to download a folder using code sandbox.
Navigate to the folder and replace github to githubbox in the URL. Then on code sandbox go to files pain on the left and hover the mouse over the down arrow, it will show a popup tooltip "Export to Zip". Just click on it to download the folder as a zip file.
reference: Download a single folder or directory from a BRANCH in GitHub repo

Github - how to download hdf5 file?

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.

specify what files from the repository are included in master.zip when using the "Download ZIP" link on GitHub

Is it possible to specify what files are included or not included in the zip file when you use the "Download ZIP" link in a repository? Or do I need to make my own?
You need to make your own: even the GitHub API only exposes the archive link, without any customization.
You would get a tarball or zipball archive for a full repository, not for a subset.
You can click on specific file and then "Raw" and download them separately and ZIP them after that.
This is useful for a few files project / small files though.

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.

create a distribution file for downloading with wget at github - no git needed

I'd like users to be able to issue something like:
wget https://nodeload.github.com/opensas/play-demo/zipball/master/opensas-play-demo-bb3a405.zip
without having to clone the whole repo, nor browsing to github to manually download it
apparently, github issues some kind of redirect when accessing:
https://nodeload.github.com/opensas/play-demo/zipball/master
and it just downloads some binary file instead...
is there some easy way to achieve it???
I've just found the asnwer
I made a distribution zip file
Uploaded it with "add new download" option
and now I have the following url to get it:
https://github.com/downloads/opensas/play-demo/play-demo-at-jugar-2011_09_29.zip