Refactor/git commands

Basically extract github commands into variables so we don't need to repeat them each time.