The Cubs beat the Giants in San Francisco 6-5 Tuesday to advance to the National League Championship Series.