Add check function to verify git checkouts