In git, how does one roll back specific commits in a branch but not roll them back in the parent branch even after merging?

Viewed 100

Hopefully this will be an easy question. I'm relatively new to git, and there are some things I still don't...git.

Hypothetical situation:

Suppose the develop branch contains two commits, c1 and c2.

A release branch is created after c2, so the release branch also contains c1 and c2.

Then it's decided that c1 needs to be deferred to a later release.

What's the recommended way to remove c1 from the release branch without also then removing c1 from the develop branch when the release branch is merged back into develop?

1 Answers
Related