I have a branch which is used for deploying the latest changes into a certain environment. Let's call it test. The test branch is used to deploy whatever it has into the test environment.
Now I work on a feature in a feature branch called feature1. I'm done with my changes and I have merged everything in my feature branch into master.
The contents in the test branch which is already deployed into test is successfully tested and moved to the uat environment. Now I want to bring everything in master into the test branch so that my changes are deployed to the test environment. I have a couple of questions though! I'm a bit hesitant to do a merge as I'm afraid that it might get into conflicts and I have to resolve them manually.
How can I replace the test branch both locally and on remote to use the latest contents in master? I have a commit id for my master. I want my test branch to update its contents based on this commit id.
Is this a good approach? Any suggestions?