gitbitbucketrebasegit-pull

After merge to master, rebase with master giving conflicts for all files merged to master


Case

A new branch created for given requirement

Problem

Now here, conflicts come every time:

How to resolve this

Please advice how to avoid this and any change required in approach?


Solution

  • Problem

    After merge to master, when again on same branch running

    Solution: After multiple tries, found below approach solving this ->

    After merge to master, if we need to add more changes in same branch

    Then i tried below steps and above problem not appeared again ->

    1. After merge to master, add more changes in same branch
    2. git add .
    3. git commit
    4. Now instead of git pull --rebase origin master, execute git pull origin master
    5. git fetch
    6. Now, if we execute git pull --rebase origin master then above stated problem will not arise
    7. git push