Skip to content

How to ‘push’ with gh? #6889

Answered by mislav
CQUPTLei asked this question in Q&A
Jan 20, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

I do not find it at: https://cli.github.com/manual/gh_repo

There are no gh commands to commit nor push.

If not, what are the advantages of using gh?

GitHub CLI is a tool to interface with GitHub-specific features. GitHub is built around the concepts of Git repositories and adds extra features on top:

  • Users, organizations, access-controlled repositories,
  • Issues, Discussions,
  • Pull Requests, code review,
  • GitHub Actions, Codespaces,
  • Gists,
  • and more.

Git CLI can already create local git repositories, commit, add remotes, push, etc. There doesn't need to be an additional CLI to do the same. However, Git CLI cannot create a GitHub repository, or list its issues, or view results of an Actio…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@CQUPTLei
Comment options

Answer selected by CQUPTLei
Comment options

You must be logged in to vote
1 reply
@Krahos
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants