In this post Premier Developer Consultant Najib Zarrari will show us how to use Visual Studio Team Services (VSTS) or on-prem Team Foundation Server (TFS) version control system to version control Salesforce.com customizations.
He showcases how the Build feature in VSTS or TFS can enable you to deploy customizations from one Salesforce development instance to a Salesforce QA instance. He shows how to configure Continuous Integration (CI) so that each time you commit and push a change to a VSTS git repository, a build is triggered, which deploys to the Salesforce QA instance giving you immediate feedback on whether your changes broke anything in the Salesforce QA instance.
This walkthrough assumes some familiarity with Salesforce.com programming as well as git based version control system. Also, we will use VSTS but most steps apply to TFS as well. Note that you can get a VSTS account for free at https://www.visualstudio.com/products/visual-studio-team-services-vs