how to install my custom module on another magento2 project from git using composer

I tried with composer config ->this works fine.

when I run composer require its shows an error

  Failed to execute git clone --mirror

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

1 Answer 1


The problem is due to the ordering of repositories - we're using satis to as a private package server. For some reason, satis says that the dev-master branch is available, but wouldn't correctly provide it (it works for tags, though).

By changing the file so that the git repo is listed ahead of satis, it works:

    "repositories": [
            "type": "vcs",
            "url": "[email protected]:amh-framework/amh-test.git"
            "type": "composer",
            "url": "https://svn.amh.net.au:8002"
    "require": {
        "amh-framework/amh-test": "dev-master"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.