ZF2项目专用存储库 [英] ZF2 private repository for project
问题描述
我通过Composer启动了ZendSkeletonApplication。我将需要我的项目私人存储库(Git)。怎么做? Skeleton现在有.git文件,所以我如何在BitBucket上处理我的项目?
问候
从零开始创建ZF2框架项目的最好方法是使用ZFTool( http://framework.zend.com/manual/2.1/en/modules/zendtool.introduction.html )。将它安装到/ usr / local / bin(具有可执行权限),然后您可以执行此操作:
$ zftool.phar创建project project_name
这将为您提供一个完全免费的project_name文件夹中的框架应用程序。 p>
现在在BitBucket上创建一个私有存储库,并按照说明设置磁盘上的代码。
注意在project_name中创建的项目具有.gitmodules文件。如果您使用的是Composer,则可以在添加到BitBucket之前删除此文件。如果你想使用子模块,那么它将ZF2设置为一个子模块,以供你初始化和更新。
I started ZendSkeletonApplication via Composer. I will need for my project PRIVATE repository (Git). How to do it? Skeleton have now .git files so how I can work with my project for example on BitBucket?
Regards
The best way to create a ZF2 skeleton project from scratch is to use ZFTool (http://framework.zend.com/manual/2.1/en/modules/zendtool.introduction.html). Install it to /usr/local/bin (with executable permissions) and then you can do this:
$ zftool.phar create project project_name
This will give you a skeleton application in the project_name folder which is completely git free.
Now create a private repository on BitBucket and follow the instructions for setting up with code already on your disk.
Note that the project created in project_name has a .gitmodules file. If you're using Composer, you can just delete this file before you add to BitBucket. If you want to use submodules, then its set up with ZF2 as a submodule ready for you to init and update.
这篇关于ZF2项目专用存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!