so, Github in this time just support SSH protocol for clone private Repository, the first step in your local machine who wants to clone running this command to make your SSH Token:

ssh-keygen -t ed25519 -C “yourmail@gmail.com”

and then, as default will ass about your path for save ssh token, and password SSH for secure your protocol

after complete, you can use

cat ssh_file.pub

and copy all inside the file, for attention to carefull no whitespace.

go to your Github,

in Top Right Github account goto Settings -> in Access Section choose SSH and GPG Keys

choose New SSH Key

fill Title with your identity of your pc as general , and in key type choose Authentication Key , and key Paste code from .pub file before.

after that, in your local command line you will already can clone your repo

goto your shell, and type

git clone  git@github.com:yourUsername/yourRepoName.git, and then will ask your  password  that you set before, hit enter and it will working to clone your private Repo