1. git init

2. git clone http://xushuyi@172.16.33.1/big-data/diagon-suite/diagon.git

 

异常解决方案

1. 出现错误:(gnome-ssh-askpass:3530): Gtk-WARNING **: cannot open display: 然后求解决方案?

解决:直接运行unset SSH_ASKPASS,然后再重新git clone

2. 解决报错:error: The requested URL returned error: 401 Unauthorized while accessing

解决方法一:指定用户
git clone https://github.com/org/project.git

换成
git clone https://username@github.com/org/project.git
或者
git clone https://username:password@github.com/org/project.git

在push或者pull出出现的话,则需要更改远程地址
git remote set-url origin https://username@github.com/org/project.git

解决方法二:去除验证
git config –global http.sslverify false

解决方法三:(推荐)
升级git 版本≥1.7.10

解决方法四:
添加ssh秘钥

相关文章:

  • 2021-08-15
  • 2021-11-18
  • 2022-12-23
  • 2021-05-20
  • 2022-01-10
  • 2021-08-17
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2022-12-23
  • 2021-06-08
  • 2022-01-04
  • 2022-12-23
  • 2021-08-30
  • 2021-12-05
相关资源
相似解决方案