Vundle没有验证github

shr*_*iek 6 authentication vim github vundle

我有这个~/.vimrc.

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
Run Code Online (Sandbox Code Playgroud)

非常,直截了当.我有几个插件,我想使用Vundle安装,但每当我这样做时,:PluginInstall它会提示我输入github用户名和密码.我知道我的用户名和密码是正确的,但它仍然无法进行身份验证.我在github btw上有双向身份验证.我认为不重要.但是,我收到以下错误.

[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
Run Code Online (Sandbox Code Playgroud)

我甚至尝试通过做什么ssh -T git@github.com来 连接到githubHi shriek! You've successfully authenticated, but GitHub does not provide shell access.

所以,我有点迷失在发生的事情上.救命?

Von*_*onC 12

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

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

同理:

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

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