I got problems with the flow of git, I update my master branch and then proceed to merge with my branch, then I make my changes and commits them. After that I make a git rebase --interactive HEAD~2 and squash the commits of the merge master with my commits and then push it to my branch, but when I tried to make a merge request it appears that my branch is behind(10 commits behind) the master branch.
I don’t what I’m doing wrong, can anybody help me?
Edit: this is the order of the commands
Git checkout master git pull origin master
git checkout <mybranch> git merge master
I make my changes and then
git add . git commit
git rebase--interactive HEAD~2 git push origin