Reputation: 157
I am new to Github and facing the below issue:
Could anybody let me know how i could add this folder to repository? Your help will be much appreciated!
Thanks!
Upvotes: 2
Views: 2715
Reputation: 1328652
If that folder is empty, you won't be able to add it directly.
.keep
), git add
that folder (it will work because of the folder content), git commit
git push
.If that doesn't work:
git clone
the github repogit add yourfolder
git commit
-m "yourfolder"git push
Check if you have a .gitignore
file anywhere in your repo, to see if "Yourfolder
" is declared as ignored.
You also can type:
git check-ignore -v yourfolder
That allows you to check if there is any gitignore rule which would cause yourfolder to be ignored.
Upvotes: 5