I have a xyz
remote Branch in Azure Devops and I want to replace master
Remote Branch with this Branch.
Meaning: My master Remote Branch data will be replaced with XYZ
Branch.
How is it Possible ?
I have a xyz
remote Branch in Azure Devops and I want to replace master
Remote Branch with this Branch.
Meaning: My master Remote Branch data will be replaced with XYZ
Branch.
How is it Possible ?
One easy approach is to:
See this approach illustrated here.
But that would replace all commits from masters by the ones from XYZ.
If you just want to replace master files, while keeping its original history, use git merge -s ours
(as seen here)
In both instances, making sure the end result is the one you expect locally, before pushing back, is the recommended approach.