Optical pump-probe techniques are used to generate and measure electron spin polarization in a gallium arsenide epilayer in which the electron spin coherence time exceeds the mode-locked laser repetition period. Resonant spin amplification occurs at magnetic fields at which the electron spin polarization excited by successive laser pulses add constructively. Measurements of Kerr rotation as a function of applied magnetic field reveal nuclear spin polarization that aligns either with or against the external magnetic field depending on whether the applied magnetic field is being decreased or increased. Furthermore, the nuclear spin polarization magnitude varies in proportion to the perpendicular net electron spin polarization as the latter changes due to resonant spin amplification and other causes. We also report an experimental technique that reveals a minutes-long memory of precise field history in the electron-nuclear spin system.