Rework the git commands in git_refresh