1

I see that for every extension installed via modman there is a subdirectory named .git

I am not familiar with how Git works as I have used SVN only. My question is:

Is it ok to delete these .git directories after the extension is installed or does modman need them (e.g. for version updates etc)?

1

It depends how you used modman to install the extensions. If you use modman clone to get the extension then behind the scenes modman actually uses git to retrieve it. After this if you want to update the extension using modman update then again modman will again use git to update it. If you remove the .git directory all the git configuration for the extension will be lost and modman will not be able to update the extension.

I would recommend keeping these files but all you would be losing by removing them is the ability to update the extension. Your not going to break your Magento install by removing them.

  • So I actually need the .git files if I want to be able to update the extensions installed by modman? – george Mar 5 '15 at 10:43
  • 1
    I updated my answer to answer your question – Andrew Kett Mar 5 '15 at 11:01
  • Btw, where are the .git directories your asking about? I am assuming you mean in the extension code under the .modman dir? – Andrew Kett Mar 5 '15 at 11:21
  • Yes: ./modman/Extension_Name/.git – george Mar 5 '15 at 11:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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