How to upload an entire folder? #21962
Replies: 35 comments 98 replies
|
There isn’t a way to upload an entire folder through the web UI. The easiest way to do that would be to:
You can find out more information about this process in our help documentation. Let us know if you have any questions. |
|
you should just try to drag and drop your entire folder in the webui and it will upload whole folder. |
|
Wanted to confirm here, that dragging and dropping a folder into the Web UI will now, indeed, create that folder in (and upload the files within it to) your GitHub repo. See: https://help.github.com/articles/adding-a-file-to-a-repository/ for more info. |
|
I have tried to upload a folder with drag and drop option but it’s not working. So can you please suggest me how to upload an entire folder? |
|
@siva-tn Is the repo you’re trying to upload the folder to public? If so, can you share the link to it? Also, what file formats are contained in the folder you’re trying to upload? |
|
Or use command line: cd into the directory where your folder is located type: |
|
I have tried to drag the folder but it shows folder contains more than 100 files, try with less number of files, is there another way to do so?, i have nearly train_data images in my folder. |
|
Didn’t work in FF. GC worked fine though… |
|
not working, only files were uploading not entire folder. |
|
how to set path format in git add <folder> |
|
Folder upload only works if contains less than 100 files. |
|
I’m trying to drag and drop the build folder of a small react app and it doesn’t let me drop it in the web interface. Seems to be less than 100 files in the directory… Any idea what the problem might be? |
|
Same here (once I’d worked out whatr FF and GC were). Something odd in Firefox I guess. |
|
I have this problem too, I’ve created a new Repo on my Windows 10 Github Desktop, and it won’t upload some directories (e.g. build, lib) to github.com, the directory lib only has one binary file, can someone help how to solve this problem? Thanks, |
|
Thanks man, It worked. |
|
You can only upload folder if it contains less than 100 Files. Drag & Drop |
|
Open Git Bash.
Authenticate with your credentials just by SignIn in the git pop-up |
|
By drag and dropping, it worked for me. Ensure you have a repository already created on Github though. |
|
when dragging a folder, it does list all the files individually, but after commit it is correctly in the folder(s) as wanted just do a lil test with a new folder with 2 txt files and see what happens |
This comment was marked as spam.
This comment was marked as spam.
|
Alright then
…On Sat, Mar 30, 2024 at 9:58 AM Ibrahim Binmahfood ***@***.***> wrote:
Thank you that worked perfectly!
—
Reply to this email directly, view it on GitHub
<#21962 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQBUDQXT2PEIGCHTVOXVFYTY2ZPAXAVCNFSM6AAAAAARPARY2WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNJXG4ZDG>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
There's a modern solution for this. Simply follow these steps:
Done. 🤷🏻♂️ |
|
Thanks for the tip!
…On Wed, Apr 24, 2024, 14:04 Mahesh Bandara Wijerathna < ***@***.***> wrote:
@pers-ephone <https://github.com/pers-ephone> Agreed. When GitHub sucks,
it sucks hard. GitHub is a great overall platform but this is one of those
rare infuriating issues I found on here in my decades of usage. I just
completely managed not to run into it by using github.dev.
—
Reply to this email directly, view it on GitHub
<#21962 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQBUDQS5BR43TZPB4G7B7PLY66GRTAVCNFSM6AAAAAARPARY2WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TEMJRHA4DO>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This comment was marked as off-topic.
This comment was marked as off-topic.
What did you do, how did you upload the folder |
|
Go to your repo in browser then create a file, in file name -> Foldername/file.txt |
|
Using the terminal is the best solution if you got files of 100mb... |
|
Compress the folder as .zip file and upload and it will upload it. |
It will only work if you drag and drop only one folder at a time from the local PC, no matter how many files or folders are inside that folder. It will not work if you drag and drop two folders at once from the local PC. |



you should just try to drag and drop your entire folder in the webui and it will upload whole folder.