Before Captain Marvel,Carol Danvers was Ms. Marvel. In the late ‘70s, she came down with a case of selective amnesia that hid her own actions as the mighty Ms. Marvel from herself and caused a separation in their personas. Since then, or she’s undergone a lot of full costume and name changes,from Binary to Warbird to Ms. Marvel once more.
Source: blastr.com