# How to Clone a Repository from Github in Ubuntu

> To clone a repository, go to the GitHub repository you want to clone, click the green 'Code' button on the repository page, and copy the HTTPS or SSH URL to easily clone any repository to your Ubuntu system.

Canonical: https://livedemo.ai/tutorials/how-to-clone-a-repository-from-github-in-ubuntu/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a32e9ab56e05a00fd6aab/preview?step=1

## Steps

1. Go to the GitHub repository you want to clone.
2. Click the 'Code' button usually green on the repository page.
3. Copy the URL either HTTPS or SSH.
4. Following these steps, you can easily clone any GitHub repository to your Ubuntu system.
