【问题标题】:Vundle not authenticating githubVundle 未对 github 进行身份验证
【发布时间】:2014-09-20 04:28:15
【问题描述】:

我的 ~/.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 上有两种方式的身份验证。我不认为这很重要。 但是,我收到以下错误。

[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.

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

【问题讨论】:

    标签: authentication vim github vundle


    【解决方案1】:

    也许这是您插件中声明的 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 中声明正确的用户名和仓库名称,您应该在克隆上述插件时避免这些错误。

    【讨论】:

    • 哇。你是绝对正确的。这些错别字简直太尴尬了。
    猜你喜欢
    • 2015-09-23
    • 2021-06-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-03
    • 2014-06-06
    • 2020-04-19
    • 1970-01-01
    相关资源
    最近更新 更多