I used an electric razor to shave and just left about half inch below my scar so that I didn't get too close. I've had no issues and there's no risk of cuts with an electric razor
Wait until it's closed over and healed and you get an okay from your doctor!
@Lauren this is my suggestion as well
you should wait until 8 weeks so when it’s completely healed, wait for the stitches to dissolve to shave