• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

UnixArena

  • Home
  • kubernetes
  • DevOps
    • Terraform
    • Jenkins
    • Docker
    • Openshift
      • OKD
    • Ansible engine
    • Ansible Tower
      • AWX
    • Puppet
  • Cloud
    • Azure
    • AWS
    • Openstack
    • Docker
  • VMware
    • vCloud Director
    • VMware-Guests
    • Vcenter Appliance 5.5
    • vC OPS
    • VMware SDDC
    • VMware vSphere 5.x
      • vSphere Network
      • vSphere DS
      • vShield Suite
    • VMware vSphere 6.0
    • VSAN
    • VMware Free Tools
  • Backup
    • Vembu BDR
    • Veeam
    • Nakivo
    • Azure Backup
    • Altaro VMBackup
    • Spinbackup
  • Tutorials
    • Openstack Tutorial
    • Openstack Beginner’s Guide
    • VXVM-Training
    • ZFS-Tutorials
    • NetApp cDot
    • LVM
    • Cisco UCS
    • LDOM
    • Oracle VM for x86
  • Linux
    • How to Articles
    • Q&A
    • Networking
    • RHEL7
  • DevOps Instructor-led Training
  • Contact

How to upload directories to GitHub / GitLab repository ?

April 5, 2020 By Cloud_Devops 2 Comments

How can I upload folders/directories to GitHub/GitLab repository? GitHub is a web-based version control platform to manage the codes. Git platform simplifies the process to collaborate with multiple people on projects. This article will walk you through the multiple methods of uploading the directories on existing git repositories.

Upload Methods:

  • Web-GUI
  • Desktop GitHub Client
  • Git client (Linux)
  • Git Bash (windows)

Web-GUI:

Using web-GUI, you can easily drag and drop the directories with files in the existing GitHub repository. Directories must contain files with the content on it.

1. Login to GitHub web GUI and navigate the repository in which you would like to upload the files.

GitHub - Repository
GitHub – Repository

2. On your laptop, navigate to the directory that you need to upload to the GitHub repository.

Local code directories
Local code directories

3. Select the required directories which needs to be uploaded to GitHub. Just drag and drop in the Web-GUI of the GitHub page.

Drag and Drop Files on GitHub
Drag and Drop Files on GitHub

4. I have uploaded the following directories and files to the GitHub.

Local directories and Files
Local directories and Files

5. Verify you work in GitHub by navigating within the repository.

GitHub - Files Uploaded from local filesystem
GitHub – Files Uploaded from local filesystem

Empty directories and directories with empty files won’t be created in GitHub. GitHub always looks for files with data on it to create required directories and files.

We have successfully uploaded the codes from the local system to GitHub by using web-GUI. In the next article, we shall walk you through the other available methods.

Hope this article informative to you. Share it! Comment it!! Be sociable!!!

Filed Under: Git, GitHub Tagged With: Git, GitHub

Reader Interactions

Comments

  1. Jeremiah Landi says

    December 16, 2020 at 9:34 pm

    This article creates a lot of confusion and probably has derailed a significant amount of junior devs.

    “How to upload directories to GitHub / GitLab repository ?” should just be changed to GitHub; since not, all the features are available across both platforms.

    There has been an open ticket for “multiple files/folder” through the Web interface for more than three years now.

    https://gitlab.com/gitlab-org/gitlab/-/issues/14207

    Maybe start out with a matrix of features and how they apply to what? Or in the top nav list what it works with.

    Good article otherwise.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow UnixArena

  • Facebook
  • LinkedIn
  • Twitter

Copyright © 2025 · UnixArena ·

Go to mobile version