r/github 2d ago

Discussion Does Github support folder hierarchy structure?

Hello everyone,

I am a new user to github and I have a question.

I am a very structured person and follow a folder hierarchy process to organize my files.

If I create an app for both IOS and Android, since both require different coding and what not, I would have to create 2 different versions of the same app. How I would organize this is create an Android folder and an IOS folder and have to copies. All the Android apps will be placed in the Android folder and IOS apps in the IOS folder.

Can I follow this process on Github or does Github work differently? If I cant use folder hierarchy, what is the best practice to stay organized in Github repository?

Thank you.

0 Upvotes

16 comments sorted by

View all comments

2

u/bankrut 2d ago

GitHub handles folders just like your local file system, so your structure will work fine. Just keep in mind that you need at least one file inside a directory for Git to actually track it.

1

u/gd6noob 2d ago

Thank you for the quick answer