git 私有库的克隆

Recently I create a private repository and I want clone it as usual,
but response with remote: Repository not found., I do some research and find out.

I can do it with ssh way.

ssh-keygen -t rsa -C "xx@email.com"

把公钥添加到 github 里面

GIT_SSH_COMMAND="ssh -i /path/to/id_rsa" git clone git@github.com:xx/xx.git