To download the entire repository including the full history and all branches, type:
git clone <url>
The example above will place it in a directory with the same name as the repository name.
To download the repository and save it in a specific directory, type:
git clone <url> [directory]
For more details, visit Clone a repository.