My IDE has a build-in history. Nevertheless I often use a “real” version control system for my sample projects. Today I setup a local subversion repository:
sudo apt-get install subversion
Create the repo:
svnadmin create ~/svn
Tell your IDE where to find the repo:
Connect your project and you are done.