George K. George K. - 1 year ago 110
Git Question

Git error when installing with Vundle

I recently installed and have been using MacVim on OS X 10.11.5, and I wanted to install some plugins. I installed Vundle successfully, however I'm encountering errors when I try to install plugins using Vundle. The plugin I'm trying to install is YouCompleteMe. What I did is type

:PluginInstall YouCompleteMe
, however, when I execute this, I get the following error:

"fatal: could not read Username for '': Device not configured"

This is strange; I have a GitHub account, but I'm not being promoted for it. I'm very new to git, so any help would be much appreciated!

Here is a screenshot of the error log.


I ran the clone from the command prompt, and it worked, but I would like to be able to manage it from inside MacVim. Additionally, the URL MacVim was using was wrong. I had to go to the page itself and get a different URL. I would like to automate this inside MacVim if possible. Even using SSH instead of HTTPS doesn't fix the incorrect URL issue.

Answer Source

To use ssh instead of https:

git config --global url."".insteadOf

Then try again the plugin installation: any access should now use an ssh url.


git config --global url."".insteadOf ""  

That will "automate this inside MacVim".

If you have a local repo with the wrong url:

cd /path/to/local/repo
git remote set-url origin
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download