A low level git url parser.
Code originally adapted for dart from https://github.com/IonicaBizau/git-up