3 ms·
can someone explain why github has a CLI? why wouldn't you just use git?
by mghackerlady 6mo ago
can someone explain why github has a CLI? why wouldn't you just use git?
- bakies 6mo agoPRs, and managing repos, and other things that aren't git features. You can use it to auth with GITHUB_TOKEN instead of ssh or http. Which is how my agents get access. I've switched to gitea, it's got all the same features.
- mghackerlady 6mo agoah, that's probably why I've never had any use for it. I don't really contribute to any large open source projects and prefer the sourcehut/lkml style of using git
- chris_money202 6mo agogh is insanely powerful, especially if you let your coding agent use it. It’s one of my top tools. Gh lets you use GitHub features such as issues, pull request, reading CI pipelines, creating CI pipelines, etc. git is just for code version control.
- Atreiden 6mo agoCreating PRs, reading PRs, creating/reading Issues, triggering actions, to name a few
- none2585 6mo agoMy last job they used gh features heavily - pull requests, issues, and gha most of all. So having the cli made automating (or interacting with agents) github-specific tasks possible.
- cerved 6mo agoYou use gh to interact with the forge, git to interact with the repo. For example gh pr checks --watch will run and poll the CI checks of a PR and exit 0 once they all pass
- koito17 6mo agoAt my current job, I sometimes set up a Nix shell with the GitHub CLI, since that let's Claude Code associate a feature branch to a pull request. The LLM can then retrieve PR description, workflow results, review comments, etc. Also, I believe GitHub Actions cache cannot be bulk deleted outside of the CLI. The first time I [hesitantly] used the gh CLI was to empty GitHub Actions cache. At the time it wasn't possible with the REST API or web interface.