enenen
enenen

Reputation: 1967

Clone Magento project into a folder with a fresh Magento installation

I have a GitHub repo with my Magento stuff. But i am using .gitignore for the fresh installation files and the repo contains only my files. On another computer I have a fresh install and now want to clone my custom files from the repo.

So, I tried:

git clone git://github.com/username/reponame.git /opt/lampp/htdocs/Magento

but I get a fatal error:

destination path '/opt/lampp/htdocs/Magento' already exists and is not an empty directory.

If I clone without the second parameter (folder path) then I can clone the repo without errors but then it's in a new Magento duplicated folder Magento/Magento/app/... which is wrong.

OS: Ubuntu 12.04

IDE: NetBeans 7.2.1

Any ideas?

Upvotes: 1

Views: 389

Answers (1)

Lucas Moeskops
Lucas Moeskops

Reputation: 5443

For those reasons I clone on a separate directory, and made a script to copy the static files (app, js, skin etc depends on what you want to change all) to the 'live' directory.

Upvotes: 1

Related Questions