As a starting point for my new blog, I'll walk you step by step on how to export your views to code. Before we begin though, I bet your first question is:
Why?
Views are stored in the database and therefore can not be put into revision control. Like much of the Drupal system, the meat-and-potatoes of your website are stored in the database, and Views are no exception. If you should ever need to make a change to a view, you have nothing to roll back to, at least not without restoring a database backup, which is just silly.