Scenario: Have 2 git branches main and develop. From develop branch I created a new branch with the name test. Did some changes in the test branch and am ready to merge it into the main branch. But before merging I need to get other changes made by another user to develop the branch and keep mine. Only after it, I can merge the test to the main.
Precondition: 2 branches main and develop
Step 1: create new branch develop -> test
Step 2: add some code to test branch
Step 3: bring changes from develop -> test (Note: update and keep my changes in test)
Step 4: merge test -> main
How can I perform step 3.