A preliminary 6.0-magnitude earthquake hit the northern San Francisco Bay area early Sunday, the U.S. Geological Survey said.