加载中…
个人资料
张哲_____
张哲_____
  • 博客等级:
  • 博客积分:0
  • 博客访问:2,830
  • 关注人气:35
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Git问题解决方法汇总

(2013-04-02 23:07:57)
标签:

git

解决方法

it

分类: Python
1.git clone git位置
想使用Git把档案获取到某个已存在的目录下错误
fatal: destination path ‘文件夹名’ git clone already exists and is not an empty directory

解决办法,在文件夹目录下执行以下命令:

1
2
3
4
5
git init
git remote add origin gitpath
git fetch
git branch master origin/master
git checkout master

接着可以看到Git上的.bashrc出现在本地目录下


2.在学习git的时候,发现不能使用git clone从github.com下载,报了个ssl错误。

 

 

Cloning into cancan...

error: SSL certificate problem, verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/ryanb/cancan.git/info/refs

 

fatal: HTTP request failed

 

在网上找了一下,比较简单的解决办法:

 

git config --global http.sslVerify false

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有