Say I have 2 branches, develop
and p3
(production 3).
Regardless of any commit history on p3
, I want to make p3's entire commit history now exactly match develop's commit history.
p3
tries to stay on track with develop
, but people constantly merge test branches into p3
and resync it improperly with develop
.
How do I make the entire commit history of p3
match develop
so I can then call the following?
git push --force-with-lease origin p3