Jump to content

How to make two branches identical?


Recommended Posts

Sorry about a newbie question. I want to create a changeset on branch /main/irina that's identical to the latest changeset on /main. So that there are no differences between the latest changesets on two branches, and /main remains unchanged. How do I do that? I've tried merge, but that's not what I want.

 

image.thumb.png.107b2e999f1cea78b140a0354a9858f8.png

Link to comment
Share on other sites

I don't need to duplicate the history. The history can differ. I want to duplicate the current workspace. Say, the latest 20 changesets in branch A are no good, but branch B is perfect, so I want to ignore those 20 and make the workspaces at branch A and branch B look identical. I don't want to rewrite history.

Link to comment
Share on other sites

Hi,

If you want to remove some changets in branch A because they are not good, you can delete the chanegsets or use the subtractive merge operation to remove them:

https://www.plasticscm.com/documentation/advanced-version-control-guide#subtractive-merge

Then you can merge the changes from branch B to branch A (if you want these changes to be also in branch A).

Regards,

Carlos.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...