InterformNG2 is not limited to a single repository i.e. a single main folder with sub-folder for each of the object types, that you can store in the Library.
It is possible to setup a prioritized list of repositories for where InterformNG2 is to search for the referenced resources.
You can setup multiple repositories via the tenant properties (manage tenants) defined on the system setttings.
In the InterformNG2 Library you can use resources from multiple repositories as covered here.
One of the repository types is Github. Github can only be used as input in InterformNG2. InterformNG2 cannot save changed resources back to Github.
In order to use Library resources e.g. template, images etc. from Github, you first need to define a Github repository, and it is also a good idea to create a folder structure similar to what you have in InterformNG2, but you do not need to keep this structure.
You need to setup these things in order to use a Github repository:
These are the parameters: