Version control with Git is very useful to maintain changes made to file(s). It is also useful if more than one person is working on the same file. To know more about version control visit git-scm.
RStudio now has integrated two different open source version control tools. 1. Git 2. SVN (Subversion)
We will be focusing here on Git