@denis
To replace one git branch with another, you can follow these steps:
1
|
git checkout branchToReplace |
1
|
git reset --hard branchToReplaceWith |
1
|
git push origin branchToReplace --force |
Please note that force pushing can be dangerous, as it overwrites the history of the branch. Make sure you are aware of the consequences before proceeding with this action.