Script to checkout and set origin to github.

(cherry picked from commit 995d35c1681e31a2a3f2b59f21c9fde102fe5383)