Sooner or later, your server will need upgrades and patches. A version control repository can be of great help when the time comes. We use git to get our code from a repository, just like we did to install the development environment.
Next, we will impersonate the odoo user and download the code into its home directory:
$ sudo su odoo$ git clone https://github.com/odoo/odoo.git /home/odoo/odoo-11.0 \-b 11.0 --depth=1
The -b option ensures that we get the right branch, and the --depth=1 option ignores the change history and retrieves only the latest code revision, making the download much smaller and faster.