Site icon UnixArena

How to upload directories to GitHub / GitLab repository ?

GitHub - Local Dir - Upload

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:

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

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

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

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

Local directories and Files

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

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!!!

Exit mobile version