Probably worth noting that this script migrates to master. Bonus points for being able to specify the destination branch on the command line, defaulting to master. :)