简体   繁体   English

将Magento项目克隆到具有全新Magento安装的文件夹中

[英]Clone Magento project into a folder with a fresh Magento installation

I have a GitHub repo with my Magento stuff. 我有一个Magento东西的GitHub存储库。 But i am using .gitignore for the fresh installation files and the repo contains only my files. 但是我正在使用.gitignore作为新的安装文件,并且回购仅包含我的文件。 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. 如果我克隆时没有第二个参数(文件夹路径),那么我可以克隆存储库而不会出现错误,但是它在新的Magento复制文件夹Magento / Magento / app / ...中,这是错误的。

OS: Ubuntu 12.04 操作系统:Ubuntu 12.04

IDE: NetBeans 7.2.1 IDE:NetBeans 7.2.1

Any ideas? 有任何想法吗?

由于这些原因,我克隆了一个单独的目录,并制作了一个脚本将静态文件(应用,js,皮肤等取决于您要更改的内容)复制到“ live”目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM