Porting to git