How to commit a folder to gitHub
20,505
Solution 1
Try this :
git add myfolder
git commit -m "some message"
git push
Solution 2
git add FOLDERNAME
After that, you can do a normal commit + push as you did it with the README file.
Solution 3
Its very simple. Follow some steps-
- Just click on the Upload files button.
- Now you can see a window where you can drag or upload the files.
- Just drag your required folder and it will upload in the repository (don't click on the choose your files button, it will upload your files only, not folder. )
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Author by
Admin
Updated on July 09, 2022Comments
-
Admin almost 2 years
I am new to GitHub, able to create a README textfile and commit that (from my local machine to github site) but now my problem is, i have one folder and i need to commit that folder to git hub, can any one of you help m e on this.