let\'s say that we have an hotfixes branch which was created from master. we added commits to hotfixes, but those commits were not use
hotfixes
master
You mean you want to push your local master to the remote hotfixes branch? Like this:
git push origin +master:hotfixes
However, this requires that you are allowed to re-write the history on the remote side.