PUT SOME ENGINE OIL IN YOUR DIESEL TK,SAW AN OFFSHORE BOAT THAT THE FUEL DOCKS HAD SCREWED UP BIG TIME,THEY CALCUATED ABOUT WHAT THE RATIO WAS AND FIRED HER UP WITH EVERYBODY STANDING AWAY FROM THE ENGINE COMP. IT WORKED, EVEN IF YOU PUT A LITTLE MUCH I DON"T THINK IT WILL HARM THE ENGINE.TBRADSIM
We used to mix gas in with diesel up to a certain percent to help prevent it from gelling in cold temps. Mercedes "used to" approve up to 50%. That was thirty years ago. Not at all sure about the newer higher pressure extremely close tolerance injection. For that amount of oops, I think I'd fill it with diesel and see if it detonates as in preignition clatter. You really can hear it over the normal diesel staccato. If not, I'd run it out.
My grandpa used to over the road truck and he said the same thing about guys mixing gas in to keep their trucks from gelling, but he didn't know with these new high compression engines and I'm not familiar with them enough either.
I agree top off your tank with diesel and drive it, you'll probably notice it seems to have more power, however if you don't feel comfortable driving it disconnect your fuel line on the engine side of the pump, and cycle your key over and over again( might need to hook up a battery charger)
We see it all the time out here in Afghanistan on the airfield. About 1/2 of the Toyota Hillux pickups driven on base are diesel, as are about 1/2 of the side by side ATVs (generically called Gators.). If the mix is under 30% or so, dump some 2 stroke in and press on. Top the tank off as often as you can to dilute the mixture. You will probably see a reduced power level, as gasoline does not have as many BTUs per gallon as diesel fuel.
If the engine will not start you'll need to drain the tank and get some fresh fuel into it.
One popular myth is that a diesel engine will explode if there is too much gasoline. It isn't true. Gasoline is rated in octane, which is the resistance to igniting without a spark. The resistance to igniting without a spark will cause the engine to not start if there is enough gasoline in the mixture.