Reputation: 123
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 'https://github.com': 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.
Update:
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.
Upvotes: 2
Views: 525
Reputation: 1324447
To use ssh instead of https:
git config --global url."[email protected]:".insteadOf https://github.com/
Then try again the plugin installation: any https://github.com access should now use an ssh url.
Similarly:
git config --global url."https://github.com/vim-scripts/YouCompleteMe.git".insteadOf "https://github.com/Valloric/YouCompleteMe.git"
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 https://github.com/Valloric/YouCompleteMe.git
Upvotes: 2