On 5/17/13 6:44 PM, Ben Goodrich wrote:
> Daniel and I have been Gchatting about the transition. I don't know git well enough to make sure we're not stepping into
> quicksand,
My concern exactly. Git(Hub) is insanely complicated and
seems constrained in surprising ways in terms of what
it will and won't let you do, like set permissions on
a branch by branch basis or clone your own repository.
> so I want to throw this out there to see if anyone can spot a problem:
>
> 1) Rename master as develop with
>
> |
> git branch -m master develop
> |
>
> 2) Create a new master branch starting at the v1.3.0 tag with
>
> |
> git branch master v1.3.0
> |
>
> 3) Pushing everything to github with
>
> |
> git push -f origin master
> |
>
> This idea was based largely based on the commentary in these two posts
>
>
http://stackoverflow.com/questions/2862590/how-to-replace-master-branch-in-git-entirely-from-another-branch
>
http://stackoverflow.com/questions/2763006/change-the-current-branch-to-master-in-git
>
> The central problem with a transition to the gitflow paradigm is that there are an untold number of branches out there
> in the world that have branched off our master branch prior to today that in the future need to be capable of being
> merged into develop and subsequently master. I'm theorizing that with the rename in step 1), git would be able to sort
> that out because the reflog goes with it.
That's a good point. I doubt we have enough people out
there working on it who haven't told us about it to
worry about. At worst, they'd just have to recreate the
new branch.
> Another issue is that maybe in the next week or two, we will need to branch the v1.4.0 release branch from the develop
> branch and when it is ready to release, merge that into master without inducing bad merge conflicts or creating Back to
> the Future Part II git history that would doom every future git bisect.
>
> And there maybe other problems that I haven't considered yet. So, thoughts?
Can't we just now
* leave "master" branch as is
* create a "develop" branch from "master" as it stands
Then in the future
* push all "feature/" branches to "develop"
* push all "hotfix/" branches to "master" and "develop"
* push all "release/" branches to "master" and "develop"
Is the issue that if you create the branch from "master"
you have to push it back into "master"? If so, can we
just merge all the branches we have back into "master"
before we start the above?
That's actually a question for everybody --- I don't have any
work in branches to save. I'll make another post.
- Bob