Removal of the config.Config from git package and sub-packages
As we are ready to get rid of the global config.Config variable this change does exact it for the files in the git package and its sub-packages. It also includes some small refactorings like adding/refactoring of a setup functions.
Part of: #2699 (closed)
Edited by Pavlo Strokov