NeoVim(nvim)のプラグインを更新しようとしたとろ、vimdocでエラーに遭遇
x vimdoc-ja:
error: Your local changes to the following files would be overwritten by merge:
doc/tags-ja
Please commit your changes or stash them before you merge.
Aborting
Updating b3a3cb2..c810d63
私の環境では、nvimのプラグインは、 ~/.config/nvim/plugged/ になっているので、この中のvimdoc-jaに入り、コミットする方向で解決です
確認
$ cd ~/.config/nvim/plugged/vimdoc-ja
$ git status
On branch master
Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: doc/tags-ja
no changes added to commit (use "git add" and/or "git commit -a") コミット
$ git add .
$ git commit -m "doc/tags-jaを更新" nvim内で更新
$ nvim
コマンとモードでPlugUpdateにて更新
: PlugUpdate 今度は、下記のエラー
fatal: Not possible to fast-forward, aborting. 【Git】git pull時のNot possible to fast-forward, aborting.解消法 - Qiita
git pullを実行する前に、commitしたことが原因のようです
$ git pull --rebase origin master
From <https://github.com/vim-jp/vimdoc-ja>
* branch master -> FETCH_HEAD
Successfully rebased and updated refs/heads/master. これで、ようやくvimdoc-jaが更新出来ました