Windows 尝试从GitHub克隆时出现权限被拒绝(公钥)错误
我想克隆存储库,但遇到权限问题, 我试图设置我的用户名和电子邮件,但不断出现错误 我曾经Windows 尝试从GitHub克隆时出现权限被拒绝(公钥)错误,windows,git,Windows,Git,我想克隆存储库,但遇到权限问题, 我试图设置我的用户名和电子邮件,但不断出现错误 我曾经 git config --global user.name "yusuf-uthman" git config --global user.email "yusufuthman57@gmail.com" 但无论是否接受,都没有收到任何通知 Uthman@DESKTOP-30QGK3L MINGW64 ~/Desktop/Scripts/hng_internship5.0 $ git config --gl
git config --global user.name "yusuf-uthman"
git config --global user.email "yusufuthman57@gmail.com"
但无论是否接受,都没有收到任何通知
Uthman@DESKTOP-30QGK3L MINGW64 ~/Desktop/Scripts/hng_internship5.0
$ git config --global user.name "Uthman Yusuf"
Uthman@DESKTOP-30QGK3L MINGW64 ~/Desktop/Scripts/hng_internship5.0
$ git config --global user.email "yusufuthman57@gmail.com"
Uthman@DESKTOP-30QGK3L MINGW64 ~/Desktop/Scripts/hng_internship5.0
$ git clone git@github.com:yusuf-uthman/hng-internship.git
Cloning into 'hng-internship'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我希望获得许可并能够克隆存储库,
我确信存储库是存在的,因为我刚刚创建了它,
我将感谢任何帮助
但无论是否接受,都没有收到任何通知
Uthman@DESKTOP-30QGK3L MINGW64 ~/Desktop/Scripts/hng_internship5.0
$ git config --global user.name "Uthman Yusuf"
Uthman@DESKTOP-30QGK3L MINGW64 ~/Desktop/Scripts/hng_internship5.0
$ git config --global user.email "yusufuthman57@gmail.com"
Uthman@DESKTOP-30QGK3L MINGW64 ~/Desktop/Scripts/hng_internship5.0
$ git clone git@github.com:yusuf-uthman/hng-internship.git
Cloning into 'hng-internship'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
用户名和电子邮件只是git配置文件中的设置,没有人会接受或拒绝它。如果提交,设置值将用于确定提交作者和提交者
对存储库的访问权限通常通过ssh密钥进行管理。请参阅。看起来您正在通过SSH URL克隆github repo。为此,您需要在存储库中添加您的公共SSH密钥 使用HTTP URL方法进行克隆,然后您就可以在本地计算机上进行克隆 格式: -SSH-url:git-clonegit@github.com:yusuf uthman/hng-interporation.git
-HTTP URL:https://github.com/yusuf-uthman/hng-internship.git似乎是权限问题。这个答案的可能复本对我有用。我使用的是SSH克隆链接而不是HTTP,当我尝试HTTP url时,它立即起作用。。感谢并对迟来的回复表示歉意