I have two branches, master and my-work-branch
Other people will push changes to master, so I need to keep my-work-branch synced with master so that I also get other people`s changes
I tried to rebase from my-work-branch against master branch often with the following command
git rebase origin/master
I did that two days ago, so git log in my-work-branch is something like this:
merge change from master
my change a
my change b
my change c
...
latest change from master two days ago
Today I ran the same rebase command again, (during the two days, I do not have any changes on my-work-branch, all I do is try to get new changes from master)
However, I noticed that git applies my changes (a, b, c ... ) twice (I can see it in the git log), and also it caused conflicts, so I need to resolve the conflicts.
Does anyone know why this would happen?
Is git rebase the wrong way to keep my-work-branch in sync with master branch?