github

How to upload folders on GitHub


How can I upload folders to GitHub? I have all of my code in a folder, containing 98 files, on my desktop. I know how to upload files, but it there a way to upload the entire folder?


Solution

  • This is Web GUI of a GitHub repository:

    enter image description here

    Drag and drop your folder to the above area. When you upload too much folder/files, GitHub will notice you:

    Yowza, that’s a lot of files. Try again with fewer than 100 files.

    enter image description here

    and add commit message

    enter image description here

    And press button Commit changes is the last step.