I would keep these two lines out, with them in it's impossible to push anything that isn't master on upstream. Also, I don't think it's common to name the source repo upstream as opposed to origin anyway.

I think it's reasonable to assume that you've already checkout out the branch you want to push prior to pushing.