git clone https://github.com/example/myapp.git /opt/myapp

Category: VPS Management

git clone https://github.com/example/myapp.git /opt/myapp

Clone the app repository to the server

Copies the example/myapp repository from GitHub into /opt/myapp (the conventional location for self-contained server applications) over HTTPS. The clone contains the full history, enabling clean pull-based deploys afterward. For private repos, use an SSH remote or a deploy token instead of interactive credentials.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.