clone a git repo as a specified user and checkout a specified branch/tag