Removal of the git.NewCommand
To break dependency on the global config.Config variable the new git.CommandFactory abstraction was introduced for git commands execution. Now we are ready to completely remove git.NewCommand function and replace its usage with CommandFactory.
Part of: #2699 (closed)