I want to create a folder in a GitHub repository and want to add files in that folder. How do I achieve this?
You cannot create an empty folder and then add files to that folder, but rather creation of a folder must happen together with adding of at least a single file. On GitHub you can do it this way:
/. This creates a folder.gitkeep which is conventionally used to make Git track otherwise empty folders; it is not a Git feature though)