Extracting git stuff into separate library