do not get married within the first 60-90 days. Wait a bit. Then the spouse with a GC can file I-130 petition for an immigrant visa. It will not give any legal status to the F-1 person, he/she will still need to maintain F-1 status. She/he will not be able to travel overseas because they will not be able to get a new F-1 visa, and may even be turned away at the point of entry with an old F-1 visa because being married to a GC holder and I-130 filed on his behalf prove immigrant intent.
You may want to wait until the citizenship.