Ok, I am going to attempt to make things "clear as mud" regarding tying Neutral to Ground at the far end of a generator or electrical panel. I realize that 99%+ of everyone has very limited formal electricity or electronics training or background, but here goes.
The reason many of you are still alive today is that before the NEC was changed to requiring 4 wires (hot, hot, neutral & ground) you may have received slight electrical shocks when touching the case of an electrical appliance. The primary reason you are not dead now is that the electrical shock was very very dependent on how much current (amperage) was flowing on the (safety ground) AND how long a wire was required to go back to the electrical panel AND the wire gauge (electrical resistance) of the wire that went back to the electrical panel. All 3 factors determined if you got a very slight shock, a mild shock, a strong shock or you died.
* If the wire to the electrical panel was very short and, (let's say), 12AWG, then you may have received a very slight shock.
* If the wire to the electrical panel was very long and, (let's say), it was 14AWG, plus a 100ft+ extension cord, then you may have received a mild to strong shock.
* If you used several 100ft lengths of (let's say) 16AWG extension cords and the AC outlet was another 150ft of 14AWG wire from your electric panel (or generator), then you are probably not around any more to read why you died.
For those of you that have no thorough understanding of electricity, or amperage, or electrical resistance or voltage or wire length, then, you were fortunate that the NEC was changed to let you live a little longer.
Don't be stupid. I know many of you are saying, "Hey, it works, therefore it must be OK". Pay attention to some of the people in this post that are just trying to provide a little education and keep you alive. We do not expect you to fully understand all of the technical reasons, but just remember the next time you get shocked, you might be dead and not here to post a response that says "Yep, I was stupid and ignored the warnings."
I hate to be morbid, but wake up and realize that just because "it works" does not mean it is safe. You (or someone in your family) can be seriously injured or die from incorrect wiring practices and it is possible that you could also be sued by your incorrect wiring practices if someone else gets injured.
Wire it the way you want. I hope you live long and prosper by taking some of our advice.