Create a snapshot of the configuration
Create a snapshot of the current state of a configuration, which allows you to look into a consistent view of the configuration for looking up complex values (e.g. a remote, submodule).
The string returned when querying such a config object is valid until it is freed.
0 or an error code