I’m working on a C++ project in Visual Studio and I’ve arranged my files using filters to create a clear folder structure. However, when I upload my project to GitHub, all my .cpp and .h files are placed in one folder rather than retaining the organized structure I set up in Visual Studio.
For instance, my source files in VS are structured like this:
- Headers
- utils.h
- config.h
- Source Files
- main.cpp
- helper.cpp
But on GitHub, it appears that all files are mixed in the root directory. Is there a way to maintain the same folder organization on GitHub as I have in Visual Studio? How can I ensure that the project structure stays consistent between my local VS setup and the GitHub repository?