The short answer

Git manages repositories and version history; GitHub CLI interacts with GitHub services such as pull requests and issues. They complement one another rather than replacing one another.

Try gh

Inspect the Homebrew package and its current installation instructions before adding it to your Mac.

brew info gh

gh and git in practice

git status describes the local repository; gh auth status checks GitHub CLI authentication. Git operations work with other hosts too, while gh is designed around GitHub.

Check the GitHub host and repository before executing commands that change remote data.

git status
gh auth status

Make the choice for your workflow

Consider portability, team conventions, output format, and whether you need an interactive tool or a scriptable interface. Test a representative task using non-sensitive data before changing existing automation.

Sources and further reading