Generalize git remote