To get started with Android/Tesla OS, you'll need to get familiar with Repo and Version Control with Git.
To initialize your local repository using the TeslaOS trees, use a command like this:
repo init -u git://github.com/TeslaOS/android.git -b lp5.1
Then to sync up:
repo sync