GE just made a video walking you through a refrigerator door gasket replacement. Not all gaskets are held in place the same way but, in general, this a very helpful video.
It’s also important to have the right gasket for your model refrigerator. To find the correct gasket number, search under your model number at A-1 Appliance Parts.