Sergey Romanov
Sergey Romanov

Reputation: 3080

2 git repositories in one directory

As example there is joomla-cms repo. It has structure like this

root
   administrator
   components
   media
   library

Now I come in and what to create extension for joomla at the same time having latest Joomla version from repo. and structure is like this.

root
   administrator
   components

It only adds new folders inside joomla repo but in many different folders. Even more my extension has half files public for free version and half private repo for paid version. It is a different repos. And I want all this be in one Joomla installation on my PC.

So how I set up that I can update all repos?

Upvotes: 2

Views: 101

Answers (2)

Ying-Shan Lin
Ying-Shan Lin

Reputation: 894

In my opinion, you should create a sperate git repository for your Joomla! extension like this joomla-extensions/boilerplate: Boilerplate files for Joomla! extensions if you want to version control your own extension.

Then manually install or update your extension via administration page.

Upvotes: 0

ChuckE
ChuckE

Reputation: 5688

Maybe this solution suits you:

http://git-scm.com/book/en/Git-Tools-Submodules

It allows you to have a project repository and inside have sub-repositories that are independent repositories themselves, but which the project repository is connected to.

Upvotes: 1

Related Questions