General Motors Corp. and the International Union of Electronic Workers reached a tentative agreement Wednesday night on a new, three-year labor contract, averting a midnight strike.

The tentative agreement was reached about 8:30 p.m., 31/2 hours before an extension of the current agreement was to have expired. GM and the IUE had agreed to extend the current pact from its original expiration date of Sept. 14.