Vundle不认证github

尖叫

我有这个~/.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

漂亮,直截了当。我有几个我想使用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

我甚至尝试连接到GitHub上做ssh -T [email protected]它说Hi shriek! You've successfully authenticated, but GitHub does not provide shell access.

所以,我有点迷茫。救命?

也许这是插件中声明的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,您应该在克隆上述插件时避免这些错误。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章