I have an issue with my branches
Introduction
I have 3 branches on my project : Dev, Main & Staging
On Dev branch we add new features, on Main branch we fix bugs, on Staging we deploy for testing.
When a bug PullRequest is completed on Main branch, we make a PullRequest Main -> Dev** to keep up to date the Dev branch. When a new feature is developed, a PullRequest is complete on Dev branch.
When we want to deploy all the new features, we make a PullRequest Dev -> Main, and then a PullRequest Main -> Staging. Finally we deploy the content of Staging branch
Problem
When I compare manually my branches Dev and Main, I see there are differences : in Dev branch some files appeared in a folder, but it were moved to another folder before in a previous commit on Main branch.
When I make git diff Main..Dev
, I see there are same differences than above.
Normally, at this moment, this two branches have to be at the same state. So I made a PullRequest Main -> Dev to give to branch Dev the correct state (Main state) : but it say that there are no changes on my PullRequest.
Question
How can I properly give to Dev branch the current state of my Main branch ?
Thank you