'cant upload the whole folder with its subfolders on github

I am trying to upload my website folder with its HTML, CSS and JPEG files each type is in it own folder.

But when I upload it on Github it uploads the files only in all folders.

How can I create a folder so I can organise my assets on Github?

I tried to drop the folder but it didn't help

I used the following:

gitbash
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/username/nameofrepo.git
git push -u origin main


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source