Geolim4
Geolim4

Reputation: 454

Replacing main branch by another on Github

I'm currently an owner of a project on Github. Actually, I have many branches: V4, V5, V7 (currently in dev) and final.

The final branch is actually the equivalent of the v6 branch (which does not yet exists).

My current concern is that I'm about to release the v7 and merge it to the final branch just after creating the v6 branch from final and I don't how the releases will react if i remote the final branch and replace it with a master one.

The choice to call it final was due to my predecessor and to be compliant with modern git conventions I want to call my Master branch... master

But does this will delete/affect my releases that were based on the final branch even if the commits will just be kind of "transfered" to the master branch ?

Here's the concerned project.

Upvotes: 1

Views: 167

Answers (1)

azium
azium

Reputation: 20634

Releases in github are just pointers to tags, which you can think of as branches. Deleting a branch does not affect any other branch or tag. Each branch or tag in git is just a string of commits, and as long as that string exists, or is a subset of commits in a different branch then the history is saved, and new tags can be made with that history.

When in doubt, fork the repo and make "scary" changes and see what happens in the fork.

Upvotes: 1

Related Questions