gitgithubgithub-cli

What is the difference between git and Github CLI or gh?


What is the difference between git and GitHub CLI? Which one should I use, git or GitHub CLI or gh depending on the situation? For example, cloning a repository, both commands support it. What gives? I am specifically asking for the GitHub CLI not GitHub itself.


Solution

  • git is used for git in general. You can use Bitbucket or GitLab, or any provider with it. You just add a repo and you can push.

    But GitHub CLI (gh) is for GitHub. With gh you can manage many features of Github from CLI e.g issues.

    I personally prefer git as I am more comfortable with it and in many offices I don't use Github. https://git-scm.com/docs/git-remote.html#_examples