Skip to content

Upload folder #22578

Dec 6, 2018 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

For clarity, this isn’t necessarily a limitation on GitHub itself so much as how git itself handles files and folders.

I suppose a reamde file could do the trick, but if all you want is to assure a folder is present then it might be a bit much.  Another approach I’ve sometimes seen people do is add a .keep file to the folder, which is just a text file that serves no other purpose than to give the git client something to include for that folder in a commit.  It could be empty, or it could hold information as to why it needs to be kept around.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ciccik-qynKad-huhba5

This comment was marked as disruptive content.

@ciccik-qynKad-huhba5

This comment was marked as disruptive content.

Answer selected

This comment was marked as disruptive content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage New User Help ❓ New User help
4 participants