I created a branch to develop a new feature. Since this new feature was develop entirely as a new project, the only possible source of conflict would be in the solution file.
As the feature was developed, the master branch was updated several times. When I completed my development and testing, I did:
git checkout master
git fetch
git pull
git checkout myFeature
git rebase master
The rebase (and all other commands) went fine and no conflicts/errors/problems were reported. My next step was to git status
and the result was:
On branch myFeature
Your branch and 'origin/myFeature' have diverged, and have 7 and 5 different commits each, respectively. (use "git pull" to merge the remote branch into yours)
When I git pull
a merge was open and looking at the history, my commits were duplicated. This duplication, in my point of view was not supposed to happen. I was expecting that my commits were supposed to be re-applied AFTER the last (currently) commit on the master.
Am I doing something wrong or my expectation is wrong?