# Setting Up A VCS

The next thing you should do is to setup a version control system for the generated project so that you can track any changes to the source code. The VCS will also cover the private and public keystore files which are automatically generated when building the project for the first time.

# Using Git

For Git (opens new window), 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

# Using Mercurial

For Mercurial (opens new window), 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 like this:

hg add
hg commit