You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/gh/0.5.2: 8 files, 13.4MB, built in 11 seconds
This commit github/homebrew-gh@f1814e9 created a new gh.rb file at the root of the repo with version 0.5.3. But gh.rb file should be in Formula directory.
@mislav sorry. I tried to run git init -b main and it's not recognizing the switch 'b', so I thought maybe I didn't have the correct version. I'm seeing a version 2.32.0 is needed?
For what it's worth: on an Ubuntu system I had the same problem. It appeared a second instance was installed through apt which was out of date. sudo apt remove gh and then a brew reinstall gh did the trick.
Activity
mdogan commentedon Feb 4, 2020
Version at https://github.com/github/homebrew-gh/blob/7f18e38ff44aabd8d2e61cdcde5c2eef43081c03/Formula/gh.rb#L4-L11 still shows
0.5.2.This commit github/homebrew-gh@f1814e9 created a new
gh.rbfile at the root of the repo with version0.5.3. Butgh.rbfile should be inFormuladirectory.vilmibm commentedon Feb 4, 2020
oof, seems like it got broken in the recent clean-up. i'll look at it today.
designMoreWeb commentedon Feb 4, 2020
Thanks for the fix
ptn77 commentedon Feb 21, 2022
Hi I'm getting a similar error when I use brew on mac to upgrade gh:
brew upgrade gh
Warning: gh 2.5.1 already installed
how did you fix this?
mislav commentedon Feb 21, 2022
@ptn77 gh 2.5.1 is already the latest available GitHub CLI version.
ptn77 commentedon Feb 21, 2022
@mislav sorry. I tried to run git init -b main and it's not recognizing the switch 'b', so I thought maybe I didn't have the correct version. I'm seeing a version 2.32.0 is needed?
mislav commentedon Feb 22, 2022
If you wanted to update
git, then you should have runbrew upgrade gitand notbrew upgrade gh. Note thatgitandghare different command-line tools.For
git init -b, you will need git 2.28 or higher.reneknuvers commentedon May 15, 2025
For what it's worth: on an Ubuntu system I had the same problem. It appeared a second instance was installed through apt which was out of date.
sudo apt remove ghand then abrew reinstall ghdid the trick.Use region from boto3 session when possible (cli#299)