As discussed with Ankit , here the process we must follow.
1. Merge into the Dev branch:
Start by merging the changes into the Dev branch.
2. Deploy to the Dev environment:
Move the build to the Dev environment for developer testing.
3. Merge sprint tasks into the Test branch:
After developer testing, merge the sprint tasks into the Test branch.
4. Deploy to the QA environment:
Create a build from the Test branch and deploy it to the QA environment for
testing.
5. Testing in QA environment:
Let the QA team test the build.
6. Merge request to Main branch:
Once testing is complete, submit a merge request to the Main branch.
7. Avoid direct merges to Main branch:
Do not merge directly into the Main branch at any point, unless there is a
production issue that requires a hotfix.