I am sure others have flagged this, but if you install the GitHub command line tool on Linux via Homebrew (maybe because your OS is on an LTS that doesn’t have updated tool-sets), you may find that links to the tool break the next time you update. This is most apparent in the
gh auth git-credential get command that is called when pushing data to and pulling from access restricted GitHub repositories.
You may see an error like (assuming a default install):
/home/linuxbrew/.linuxbrew/Cellar/gh/[your previous version]/bin/gh: not found. To fix the issue, update your
~/.gitconfig to point to the correct symlinked path for the command line tool:
/home/linuxbrew/.linuxbrew/bin/gh. Using this path should ensure that the tool remains accessible even after updates are run.
If you installed Homebrew in a different directory, you will need to update your path to match your directory structure, accordingly.
Author: Geoffrey Gimse
© Geoffrey Gimse (2023) - Built using Hugo.
Opinions expressed here are my own and are not neccessarily shared by employers, friends, or colleagues. Except where noted, all photos are my own. Other images used on this site are in the Public Domain or have been purchased for use via The Noun Project."