Dan Power
Dan Power

Reputation: 1141

How do i fork my development repo into a new branch of my production repo using Github

I have two repo's which I'd like to keep separate. One for development, branches are features/fixes etc, the other is a production release, where its branches are for versions.

I'm still very new to version control, so I'm not even sure I'm doing it correctly.

What I'd like to do, is fork master from development, then that fork be a new branch in production with a version number, say 1.3 etc.

Is this possible, or is there a better way to do this?

Upvotes: 1

Views: 141

Answers (1)

Fred Foo
Fred Foo

Reputation: 363817

The better way is to use one repo with branches for features and either branches or tags for versions. That makes it much easier to merge branches and move commits around, compared to having two repos. It also saves confusion on the part of the developers.

Upvotes: 2

Related Questions