Dave devloped a very interesting tool for Arduino IDE, called Upload-And-Retrieve-Source.
With that tool, you can use Github as a repository for your sketches: you can upload and retrieve them using friendly menu items:
Github also features version tracking:
Via: Hack a Day