This has been extensively discussed on the forum along with some suggestions, including use of a proper source control system.
See my message (474053) as to how we do it in our company at:
http://www.sqlservercentral.com/Forums/Topic472950-146-1.aspx#bm474053