refactor git commands
further refactor gh_token