首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vundle不验证github

Vundle不验证github
EN

Stack Overflow用户
提问于 2014-09-20 04:28:15
回答 1查看 2.7K关注 0票数 6

我的~/.vimrc上有这个。

代码语言:javascript
复制
set nocompatible              " be iMproved, required
filetype off                  " required

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'crooloose/nerdtree.git'
Plugin 'tomasr/molokai'
Plugin 'kien/ctrlp'
Plugin 'bling/vim-airline'
syntax enable
colorscheme molokai

很漂亮,很直接。我有几个插件,我想安装使用Vundle,但每当我做:PluginInstall,它提示我的github用户名和密码。我知道我的用户名和密码是正确的,但它始终无法验证。我在github有双向认证。我觉得这不重要。但是,我得到以下错误。

代码语言:javascript
复制
[2014-09-19 23:18:14] 
[2014-09-19 23:18:14] Plugin crooloose/nerdtree.git
[2014-09-19 23:18:14] $ git clone --recursive 'https://github.com/crooloose/nerdtree.git' '/home/shriek/.vim/bundle/nerdtree'
[2014-09-19 23:18:14] > Cloning into '/home/shriek/.vim/bundle/nerdtree'...
[2014-09-19 23:18:14] > remote: Invalid username or password.
[2014-09-19 23:18:14] > fatal: Authentication failed for 'https://github.com/crooloose/nerdtree.git/'
[2014-09-19 23:18:14] > 
[2014-09-19 23:19:51] 
[2014-09-19 23:19:51] Plugin kien/ctrlp
[2014-09-19 23:19:51] $ git clone --recursive 'https://github.com/kien/ctrlp.git' '/home/shriek/.vim/bundle/ctrlp'
[2014-09-19 23:19:51] > Cloning into '/home/shriek/.vim/bundle/ctrlp'...
[2014-09-19 23:19:51] > remote: Invalid username or password.
[2014-09-19 23:19:51] > fatal: Authentication failed for 'https://github.com/kien/ctrlp.git/'
[2014-09-19 23:19:51] > 
[2014-09-19 23:19:52] 
[2014-09-19 23:19:52] Helptags:
[2014-09-19 23:19:52] :helptags /home/shriek/.vim/bundle/Vundle.vim/doc
[2014-09-19 23:19:52] :helptags /home/shriek/.vim/bundle/vim-airline/doc
[2014-09-19 23:19:52] Helptags: 2 plugins processed

我甚至尝试通过ssh -T git@github.com连接到github,上面写着Hi shriek! You've successfully authenticated, but GitHub does not provide shell access.

所以,我有点不知道发生了什么。帮助?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-09-20 07:45:11

也许这是插件中声明的url中的一个简单错误(您正试图克隆)。

https://github.com/crooloose/nerdtree.git不存在。

https://github.com/scrooloose/nerdtree.git有。

同样:

https://github.com/kien/ctrlp不存在。

https://github.com/kien/ctrlp.vim做的

通过在您的~/.vimrc中声明正确的用户名和回购名称,您在克隆上述插件时应该避免这些错误。

票数 12
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25945237

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档