SyntaxFix
Write A Post
Hire A Developer
Questions
What you're doing is pretty error-prone. Just do:
git rebase -i master
which will automatically rebase only your branch's commits onto the current latest master.