Skip to content

This repository will tell you how to upload multiple Folders or a Project to GitHub Repository.

License

Notifications You must be signed in to change notification settings

MohitPimoli/Upload-Folders-to-GitHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Upload-Folder-to-GitHub

This repository will tell you how to upload multiple Folders or a Project to GitHub repository.


Follow these steps to upload multiple folder or a project to GitHub repository:

Note Download Git Bash First. Ignore if already Downloaded.

Git Bash

  1. Open Git Bash CLI.
  2. Navigate to the desired Folder or Project.
    cd /path/to/your/project
  3. Initialize a Git repository in your project directory:
    git init
  4. Create a new file called LICENSE in your project directory, and copy the text of the desired License into this file. You can find the License text on internet. ( Optional Step. )
    nano LICENSE

Paste the text inside and save it by pressing Ctrl+x >>> then y >>> then Enter.

  1. Add all your project files to the Git repository:

    • For adding all files at once use.
      git add .
    • For adding one file at a time use.
       git add <file_name>
  2. Commit your files to the repository:

    git commit -m "Your Commit"
  3. Create a new repository on GitHub. Make sure to not initialize it with a README, .gitignore, or License. This is because you are pushing an existing repository.

  4. Link the local repository to the remote repository:

    git remote add origin https://github.com/username/new-repo.git

Replace https://github.com/username/new-repo.git with the URL of your newly created GitHub repository.

  1. Rename your current branch to master:
    git branch -m main master
  2. Push your local repository to GitHub:
    git push -u origin master

Git Cheat Sheet

Have a look

About

This repository will tell you how to upload multiple Folders or a Project to GitHub Repository.

Topics

Resources

License

Stars

Watchers

Forks