1+ on the recommendations above, but I'll put a little extra explanation on the responses.
Check some local websites on surf before you even plan your dive to get a sense of the waves. Web sites for surfers are great but they are hoping for big waves. Look for "bad" conditions on surfing sites since that means the surf is down.
If you are shore diving, before you even gear up, walk to an area from your car where you can see the conditions. Note the waves and wave sets. Pay particular attention to not only their size but the timing. Take note if there are bigger swells coming in between the usual sets. I also look to see if the water is clear at the crest of the wave just before it breaks to get a clue to the conditions. If the water looks clear then visibility may not be great, but if it looks murky then pretty good sign the viz is going to be challenging.
Also, don't be afraid to look at the waves and thumb the dive if waves are too high. My general rule is if they are 3-4 ft. or more then I'm coming back another day. I can get out no problem but fi they are that high then visibility tends to suffer and I really don't enjoy the dive anyways.
When you are geared up and at the waters edge pay attention to the conditions again to make sure the size of the surf hasn't changed. Be are of when high tide is because if the tide rises so might the waves. I was taught to have you regulator in you mouth as you enter the water, and just enough air in your BC so that you can float high enough to go over the wave or not so much air that you can also duck under the wave if needed. When going over or under a wave also make sure your hand is over both your reg and your mask so you don't lose either. I've seen many a diver lose a mask when hit by a big wave.
As you get out to the surf zone then you want to try and get your fins on ASAP once you get to about waist to chest level water. I would strongly recommend investing in spring straps. They are so much quicker and easier to don/doff your fins they are one of the few pieces of scuba equipment that lives up to the hype and is well worth the price. I've never heard of any shore diver regret the investment. One trick I've learned is to just put on one fin, then kick real hard with the single fin to get past the surf zone, then put the other fin on once you are in the clear. You can also use that fin to "paddle" as you are trying to get past waves while you are kicking. Works well for me.
The best way to handle shore dives is to first dive with someone familiar with the area and has lots of experience shore diving. Local clubs are a good resource. Then practice, practice, practice.
Hope you have fun.