extract push command out into a script