From Valve Developer Community
Revision as of 19:42, 27 September 2012 by Boeing747guy
god is a cheat that makes you take no damage.
To enable God Mode, make sure you have the Console Enabled, and sv_cheats 1
Then enter god into the console. Warning: God Mode will NOT work in multiplayer, even if sv_cheats is enabled.