Five buildings in San Francisco were evacuated Friday morning after construction crews hit a gas line, officials said.