I am following the instructions at http://docs.drupalcommerce.org/v2/getting-started/install.html

After providing the console command for a new installation, console starts to download the various requirements, but before completion, returns the following error.

Failed to execute git checkout '879356bbf75608f86d8fb89d76a21dc1e99a39ae' -- && git reset --hard '879356bbf75608f86d8fb89d76a21dc1e99a39ae' --
fatal: Not a git repository (or any of the parent directories): .git

I have read elsewhere that I need to initialise a git repo first? Not sure if I am missing something or whether the documentation is incomplete. I assumed it was a one line command.

What am I doing wrong and how do I resolve this?

I am not a very advanced user and intend to use Acquia Dev Desktop as working environment.

Further to the above, I went on to try creating the MYSITE directory first and then ran git init from within this folder. I then ran the composer commands for a full install, and then received another error as below.

Project directory commerce8/ is not empty.

  • You shouldn't need any additional steps, looks like a temporary failure. Delete the commerce8 folder and try again. Nov 24, 2016 at 11:29
  • Thank Bojan, but still finding the same problem though. The following url appears to describe the problem, but the suggested fix does not work for me. webadio.com/… Dec 6, 2016 at 9:28

1 Answer 1


This turned out to be a problem of running composer through Acquia Dev Desktop's terminal launcher.

When using native terminal the installation completes without issue.

Your Answer

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

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