Greenhouse Gases allow heat to enter the Earth's atmosphere...warming it up (especially during the day). Similar to a blanket making you warm...
These SAME gases TRAP the reflected radiation (another word for HEAT) and prevent the majority of it from escaping back into Space...Much like your blanket...you dont get suddenly cold, meaning some of the heat from your body is trapped INSIDE the blanket!