I have two branches Staging and Master. All the feature branches get merged into Staging. When I want to merge Staging with Master (What I mean is I want to push Staging to Master and override all the conflicts).
I tried
git checkout master
git merge staging
This is where I have all the conflicts and I want override Master with Staging. I have read about
git checkout --theirs .
git add .
But not sure if I need to use theirs or ours.
Could you guide me on how to override Master with Staging. resolve all conflicts just replace Master with Staging.
If I am doing anything wrong here do correct me.
Thanks R