Imperator123
Imperator123

Reputation: 609

How to upload folders into my github repository?

I want to upload a folder which contains another folder inside of it. When i tried dragging folder, it says that "something went really wrong, and we can't proccess that file.".enter image description here

How do i upload my folders to GitHub?

Upvotes: 4

Views: 11679

Answers (2)

arunkumar
arunkumar

Reputation: 1

git init
git add (folder_name) "eg.git add assets
git commit -m "message"
git remote add orgin (github repository url)
git push -u orgin master

Upvotes: -1

Lunar
Lunar

Reputation: 176

Uploading folders from most browsers is a pain. Only Chrome seems to have some implementation that works sometimes.

Instead, you should clone the repository to your computer and add the folder in the repository. Then, you run git add folder/*, git commit -m "<Message Here>" and git push origin master. This will add all the files in the folder to your repository, commit them and push them, effectively uploading a new folder to your repository.

Upvotes: 4

Related Questions