I have 2 branches 1st branch is master which contains some code and another branch B I want to remove all of my content from master branch and add the content that is in branch B to this master branch. The old content of my master branch should be removed and the content of my branch B should be there in master branch what is the correct way to do this can someone guide me
Asked
Active
Viewed 20 times
-1
-
1If you don't need the history of the "old" master, simply reset the branch to its new expected commit. If you need the history, see the linked duplicate questions. If the duplicates are in fact different questions, edit your question to explain why the linked questions are _not_ duplicates. – knittl May 15 '22 at 19:03