Zend certified PHP/Magento developer

magento2 custom module installation from git using composer

how to install my custom module on another magento2 project from git using composer
i tried with composer config ->this work fine .
when i run composer require its shows error

[RuntimeException]                                                           
  Failed to execute git clone --mirror

anybody please explain me to install a custom module by this method.