git command to extract proper spine-revisions etc from a git repository