环境 win10 git64

1:双击git安装包 下一步下一步到完成;

2:配置git  全局用户名和邮箱

 git config --global user.name  "username"  
 git config --global user.email  "email"

3:克隆git仓库中的代码文件;报如下错误

命令:bower install jquery     【mac】
错误信息:
bower error status code of git: 128
fatal: unable to connect to github.com:
github.com[0: 你的IP]: errno=Operation timed out
原因:
需要用https才能读到数据
解决方法:输入命令
git config --global url."https://".insteadOf git://
————————————————
版权声明:本文为CSDN博主「青青木屋」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/greenqingqingws/java/article/details/11808745

4:解决后 直接通过 git clone 命令获取git仓库代码,之前没有登录会提示输入用户名密码;

相关文章:

  • 2021-06-25
  • 2022-12-23
  • 2021-11-21
  • 2021-07-03
  • 2021-08-23
  • 2021-10-16
  • 2022-02-26
  • 2021-07-07
猜你喜欢
  • 2021-08-26
  • 2022-12-23
  • 2021-10-01
  • 2021-10-07
  • 2021-10-26
  • 2021-07-22
  • 2022-12-23
相关资源
相似解决方案