You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Michael Brooks <mi...@michaelbrooks.ca> on 2012/07/12 20:42:15 UTC

[cordova-labs] Workflow for New Projects

Hello guys,

TLDR; Read the README.md before committing to incubator-cordova-labs.

The Git repository incubator-cordova-labs [1] is an awesome place to throw
sample code and share ideas. However, there are a few downfalls with
working on multiple projects in a share Git repository:

- Cannot isolate your Git history easily, which makes migrating to a fresh
Git repo hard for the successful projects.
- Working directory is polluted with everyone's files
- Needs each project to be a subdirectory

We can easily sidestep these issues by having each project work on Git
branch:

- Migrating to a new repository is now just a Git push
- Working directory is just your files.
- No merge commits or collisions with other people's commits
- Each project can be created in the root directory

I've updated the README.md with these instructions. In short, the `master`
branch should NEVER have code in it.

[1]
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-labs.git;a=summary
[2]
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-labs.git;a=blob;f=README.md;h=2d78d3a868ee6eb7f2b7c3d1ad63340127a033e5;hb=HEAD

Re: [cordova-labs] Workflow for New Projects

Posted by Brian LeRoux <b...@brian.io>.
of course! super clever git business as usual. thx mike!

On Thu, Jul 12, 2012 at 1:31 PM, Steven Gill <st...@gmail.com> wrote:
> Awesome! Thanks Mike
>
> On Thu, Jul 12, 2012 at 11:42 AM, Michael Brooks
> <mi...@michaelbrooks.ca>wrote:
>
>> Hello guys,
>>
>> TLDR; Read the README.md before committing to incubator-cordova-labs.
>>
>> The Git repository incubator-cordova-labs [1] is an awesome place to throw
>> sample code and share ideas. However, there are a few downfalls with
>> working on multiple projects in a share Git repository:
>>
>> - Cannot isolate your Git history easily, which makes migrating to a fresh
>> Git repo hard for the successful projects.
>> - Working directory is polluted with everyone's files
>> - Needs each project to be a subdirectory
>>
>> We can easily sidestep these issues by having each project work on Git
>> branch:
>>
>> - Migrating to a new repository is now just a Git push
>> - Working directory is just your files.
>> - No merge commits or collisions with other people's commits
>> - Each project can be created in the root directory
>>
>> I've updated the README.md with these instructions. In short, the `master`
>> branch should NEVER have code in it.
>>
>> [1]
>>
>> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-labs.git;a=summary
>> [2]
>>
>> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-labs.git;a=blob;f=README.md;h=2d78d3a868ee6eb7f2b7c3d1ad63340127a033e5;hb=HEAD
>>

Re: [cordova-labs] Workflow for New Projects

Posted by Steven Gill <st...@gmail.com>.
Awesome! Thanks Mike

On Thu, Jul 12, 2012 at 11:42 AM, Michael Brooks
<mi...@michaelbrooks.ca>wrote:

> Hello guys,
>
> TLDR; Read the README.md before committing to incubator-cordova-labs.
>
> The Git repository incubator-cordova-labs [1] is an awesome place to throw
> sample code and share ideas. However, there are a few downfalls with
> working on multiple projects in a share Git repository:
>
> - Cannot isolate your Git history easily, which makes migrating to a fresh
> Git repo hard for the successful projects.
> - Working directory is polluted with everyone's files
> - Needs each project to be a subdirectory
>
> We can easily sidestep these issues by having each project work on Git
> branch:
>
> - Migrating to a new repository is now just a Git push
> - Working directory is just your files.
> - No merge commits or collisions with other people's commits
> - Each project can be created in the root directory
>
> I've updated the README.md with these instructions. In short, the `master`
> branch should NEVER have code in it.
>
> [1]
>
> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-labs.git;a=summary
> [2]
>
> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-labs.git;a=blob;f=README.md;h=2d78d3a868ee6eb7f2b7c3d1ad63340127a033e5;hb=HEAD
>