Reputation: 609
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.".
How do i upload my folders to GitHub?
Upvotes: 4
Views: 11679
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
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