I have recently started using the vim-fugitive plugin, and currently I am facing problem with the Gpush command.
I tried :Gpush %
which gives me errors in the quick fix window saying
fatal: could not read from remote repository
make sure you have the correct access rights
I can push from outside vim (the terminal) without any problems.
Do I need extra configuration? or are there other arguments when executing :Gpush
command?
I have already tried going through the help file via :h fugitive
and could find any clue. Please help.
:Gpush %
feels incorrect. Can you:Gpush
without any arguments?:Gpush
. If there is background processing, it’s usually vim running git push (though with dispatch this can be off-loaded). I suspect there’s something else going on