gh - The GitHub CLI tool

Pubblicato il: 16 febbraio 2020
sul canale di: Tech Forum
2,977
11

#github #githubCLI #gh

GitHub has announced the beta of the command-line interface, called the GitHub CLI or 'gh' in the command line, which allows developers to type and execute code from the terminal rather than using a graphical integrated development environment (IDE) application.

The GitHub CLI beta is available today for macOS, Windows, and Linux - @

GitHub notes that the CLI is in "early development" but that it brings pull requests, issues, and more GitHub concepts to the terminal.

The current commands include pull requests for status, list, view, check out, and create. The issue commands include status, list, view, and create.

For many years, the hub was the unofficial GitHub CLI tool. While both hub and gh brings GitHub to the terminal, hub behaves as a proxy to git and gh is a standalone tool.

Installation - let me install on windows. The gh can be installed in windows through the scoop package
If not installed already install the scoop package.Execute the commands from Windows PowerShell

iex (new-object net.webclient).downloadstring('@')

scoop bucket add github-gh @op-gh.git
scoop install gh
scoop update gh

The first time you need to authorize the requests - this opens the GitHub UI for authorization, you should be switched to required branch other than master to create the PR
git checkout test-branch (create some change)
git pull origin test-branch
gh pr create pr1
gh pr status

the same way the issues can be managed. While in beta, GitHub CLI is available for the repositories hosted on GitHub.com only. It does not currently support repositories hosted on GitHub Enterprise Server or other hosting providers. Thanks all for watching the video, see you in the next video.


In questa pagina del sito puoi guardare il video online gh - The GitHub CLI tool della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Tech Forum 16 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,977 volte e gli è piaciuto 11 spettatori. Buona visione!