I created the private repo examplesite/myprivaterepo using the Github UI from my browser.
Then I went to my go directory (on the desktop) and cloned it:
If you configure your gitconfig with this option, you will later have a problem cloning other repos of GitHub
git config --global --add url. "Git@github.com". Instead, "https://github.com/"
Instead, I recommend that you use this option
echo "export GIT_TERMINAL_PROMPT=1" >> ~/.bashrc || ~/.zshrc
and do not forget to generate an access token from your private repository. When prompted to enter your password, just paste the access token. Happy clone :)