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:
1.Create a Github repository.
2.Create a personal access token for the directory and ensure that you define it with read access: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
3.Remember to save the token generated above as that is needed in InterFormNG2.
4.Inside InterFormNG2 you select the system settings and here Github Server:
These are the parameters:
Name
The name of the Github definition, that you can refer to in the tenant repository list.
Repository
The name of the Github repository, that you want to access.
Token