Create a folder for the repo.
mkdir ~/Desktop/repo && cd ~/Desktop/repoClone the remote repo as a bare repository to .git directory insdie the repo directory.
git clone --bare git@github.com:user/repo.git .git # <-- notice the extra .gitConvert the repo to a regular repo
git config --bool core.bare falseReset the repo
git reset --hardNow, you have the remote branches and tags in the local repository.