add clone_gh function for github plugin