$ brew update
[ERROR] fatal: couldn't find remote ref refs/heads/master
Error: Fetching /opt/homebrew/Library/Taps/rcmdnk/homebrew-file failed!
Error: Some taps failed to update!
The following taps can not read their remote branches:
rcmdnk/file
This is happening because the remote branch was renamed or deleted.
Reset taps to point to the correct remote branches by running `brew tap --repair`
This can be fixed by brew tap --repair:
みたいなエラーが出ます。
これが出たら指示通り
123456789101112
$ brew tap --repair
From https://github.com/rcmdnk/homebrew-file
- [deleted] (none) -> origin/master
(refs/remotes/origin/HEAD has become dangling)
remote: Enumerating objects: 29, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 29 (delta 17), reused 29 (delta 17), pack-reused 0
Unpacking objects: 100% (29/29), 13.92 KiB | 431.00 KiB/s, done.
6f7e92f..a290028 coverage -> origin/coverage
* [new branch] main -> origin/main
==> rcmdnk/file: changed default branch name from master to main!
とすれば新しいデフォルトブランチに変更し、管理するように変更してくれます。
というわけで、homebrew-fileのデフォルトブランチを変更したので
もしtapしてある場合は上記のエラーが出てしまうと思いますが
brew tap --repairをお願いします。