git clone操作到开发机的错误记录

时间:2021-09-26 21:20:28

在开发机上,执行操作

$ git clone https://github.com/xxx/rank.git

返回错误:

error: The requested URL returned error: 403 Forbidden while accessing https://github.com/xxx/rank.git/info/refs
fatal: HTTP request failed

未查明原理,重新尝试操作:

$ git clone git@github.com:xxx/rank.git

clone成功