The quick answer, put it in gear and dump the clutch.
Don't let it happen, it causes damage to the engine.
It sounds like the car has been sitting for a while; conduct a good service first, that may cure it.
Things like spark plug gaps and condition, ignition timing, carbs running too lean at idle or rich etc can cause a hot spot in the combustion chamber that will act as igniter for the dieseling. If you let it happen it can start to destroy the head gasket, the damaged gasket will start to glow (burn) and act as a wick to increase the problem. It can even pit the castings, which again cause a local hotspot and on it goes.
So, new plugs, new fuel (super unleaded) check timing, check carb mixture at idle (not too rich, not too lean).
Good petrol will have anti knock additives which may help.
If it is still happening, stop the engine by stalling rather than the ignition key. At that point I'd lift the head to check and renew the gasket, while cleaning the carbon deposits from the combustion chamber.
G.