Sometimes your local branch name isn’t the same as the remote branch you want to push to.
This recently came up for me because I needed to push to a specific branch to trigger a deployment. Instead of the standard git push origin branch-name, it’s easy enough to specify the remote branch you want using this syntax:
git push origin local-branch:remote-branch #My use case branch names where I had a feature I needed to review on a develop instance. git push origin filter-feature:develop