Freddie Freeman and David Ross hit home runs as the Atlanta Braves made the most of their three hits to beat the San Francisco Giants 3-2 on Thursday to avoid a sweep.