check commits with branches