Reputation: 99
A new branch created for given requirement
git add .
git commit -m "comment"
(committing changes to branch)git pull --rebase origin master
(rebase branch with master)git fetch
git push -f origin <branch_name>
Now here, conflicts come every time:
After merge to master, when again on same branch running
git pull --rebase origin master
(rebase branch with master)Please advice how to avoid this and any change required in approach?
Upvotes: 0
Views: 96
Reputation: 99
Problem
After merge to master, when again on same branch running
git pull --rebase origin master
(rebase branch with master)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 ->
git add .
git fetch
Upvotes: 0
Reputation: 1
git pull --rebase origin master
is not pulling and rebasing master to your branch.
You should
git checkout master
git pull --rebase
git checkout -
git rebase master
Upvotes: 0