How to upload an entire folder? #21962
-
I clicked on my repo in a browser, then I clicked on Upload Files. I would like to upload an entire folder so that GitHub would preserve the hierarchy of the files and folders in my folder, but I am not able to select folders to be uploaded. How would I upload an entire folder of an XCode project? |
Beta Was this translation helpful? Give feedback.
Replies: 31 comments 78 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. |
Beta Was this translation helpful? Give feedback.
-
you should just try to drag and drop your entire folder in the webui and it will upload whole folder. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
@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? |
Beta Was this translation helpful? Give feedback.
-
Or use command line: cd into the directory where your folder is located type:
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Didn’t work in FF. GC worked fine though… |
Beta Was this translation helpful? Give feedback.
-
not working, only files were uploading not entire folder. |
Beta Was this translation helpful? Give feedback.
-
how to set path format in git add <folder> |
Beta Was this translation helpful? Give feedback.
-
Folder upload only works if contains less than 100 files. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
Same here (once I’d worked out whatr FF and GC were). Something odd in Firefox I guess. |
Beta Was this translation helpful? Give feedback.
-
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, |
Beta Was this translation helpful? Give feedback.
-
Thanks man, It worked. |
Beta Was this translation helpful? Give feedback.
-
Using the ‘Upload files’ button allows uploading fewer than 100 files. Try GIT Bash, use the following codes to upload the whole folder.
Thank you! Manika Sahu |
Beta Was this translation helpful? Give feedback.
-
Hey there, how can I set repository in cmd when my git folder lies on desktop? |
Beta Was this translation helpful? Give feedback.
-
But it doesn’t allow to upload files larger than 25 Mb |
Beta Was this translation helpful? Give feedback.
-
try GitHub Desktop still the same rules apply though in file limit sizes |
Beta Was this translation helpful? Give feedback.
-
You can only upload folder if it contains less than 100 Files. Drag & Drop |
Beta Was this translation helpful? Give feedback.
-
Open Git Bash.
Authenticate with your credentials just by SignIn in the git pop-up |
Beta Was this translation helpful? Give feedback.
-
By drag and dropping, it worked for me. Ensure you have a repository already created on Github though. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
There's a modern solution for this. Simply follow these steps:
Done. 🤷🏻♂️ |
Beta Was this translation helpful? Give feedback.
-
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:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
What did you do, how did you upload the folder |
Beta Was this translation helpful? Give feedback.
-
Go to your repo in browser then create a file, in file name -> Foldername/file.txt |
Beta Was this translation helpful? Give feedback.
you should just try to drag and drop your entire folder in the webui and it will upload whole folder.