I'm trying to work out how I can share an Umbraco cloud project on github which will allow people to contribute to the site by creating pull requests which I can then merge in to the site.
Can anyone point me in the right direction or explain how I should go about this.
Keep the existing Cloud repository, and use that as the "deployment repository".
Add a new repository on Github (or similar), and add that as a remote to your local cloud repository. Push all the contents of your repository to the github one.
That will give you two copies of the same repository, who can work together - just like your existing local and remote repository.
You might even be able to have Github merge any changes into the cloud repository automatically - I don't know how to do that, so I would go for a manual way of updating.
When contributions are getting merged into master on your github repository, you can merge those changes back into your local repository, and then push them to the remote (Cloud) repository, for deploying.
On the other hand, when Umbraco Cloud updates automatically, you can pull those changes to your local repository and push them to the Github one.
Sharing a project in github
Hi!
I'm trying to work out how I can share an Umbraco cloud project on github which will allow people to contribute to the site by creating pull requests which I can then merge in to the site.
Can anyone point me in the right direction or explain how I should go about this.
Thanks. Owain
Hi Owain
Here is what I would do.
Keep the existing Cloud repository, and use that as the "deployment repository".
Add a new repository on Github (or similar), and add that as a remote to your local cloud repository. Push all the contents of your repository to the github one.
That will give you two copies of the same repository, who can work together - just like your existing local and remote repository.
You might even be able to have Github merge any changes into the cloud repository automatically - I don't know how to do that, so I would go for a manual way of updating.
When contributions are getting merged into
master
on your github repository, you can merge those changes back into your local repository, and then push them to the remote (Cloud) repository, for deploying.On the other hand, when Umbraco Cloud updates automatically, you can pull those changes to your local repository and push them to the Github one.
Thanks!
That seems to have got me thinking in the right way and I think I've got it working now :)
O.
is working on a reply...