git clone --branch branch-name https://github.com/username/repository.git For a specific tag (release version):
git clone https://github.com/curl/curl.git This creates a folder named curl in your current directory. By default, git clone downloads the default branch (usually main or master ). To download a different branch: github download for ubuntu
git --version Cloning downloads the entire repository, including its full version history. git clone --branch branch-name https://github
git clone https://github.com/username/repository.git To download the popular curl repository: github download for ubuntu