Setting Up a VCS

This page shows you how to set-up a Version Control System for your project so that you can track any changes to the source code. The VCS will also cover the key store files which are automatically generated when building your project for the first time.

Using Mercurial

For Mercurial, the project directory already contains a .hgignore file, so all you need to do is:

$ hg init
$ hg add
[...]
$ hg commit -m "Initial commit."

Whenever you have changed any source files, you can commit your changes as follows:

$ hg add
[...]
$ hg commit

Using Git

For Git, the project directory already contains a .gitignore file, so all you need to do is:

$ git init
[...]
$ git add .
$ git commit -m "Initial commit."
[...]

Whenever you have changed any source files, you can commit your changes as follows:

$ git add .
$ git commit
[...]