Scoop update時にエラー「error: Your local changes to the following files would be overwritten by merge」が発生した場合の対処法

Scoop update時にエラー「error: Your local changes to the following files would be overwritten by merge」が発生した場合の対処法を記述してます。
環境
- OS windows 11 home
- docker 20.10.12
エラー全文
アップデート時に発生
> scoop update
Updating Scoop...
error: Your local changes to the following files would be overwritten by merge:
buckets.json
Please commit your changes or stash them before you merge.
Aborting
Update failed.
対処法
エラーがでている対象のファイルを「checkout」する。
> cd C:\Users\ユーザー名\scoop\apps\scoop\current
> git checkout buckets.json
Updated 1 path from the index
自分はこれでupdateできるようになりました。
-
前の記事
PostgreSQL 文字数をカウントする 2022.02.11
-
次の記事
javascript lodashを使って文字列の前後に指定した文字列を挿入する 2022.02.12
コメントを書く