scan and check git tree