Add ability to clone a repository and point head to a specific branch

thanks !