1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.de/common/gh.md

37 lines
746 B
Markdown

# gh
> Arbeite mit GitHub von der Konsole aus.
> Manche Unterbefehle wie `config` sind separat dokumentiert.
> Weitere Informationen: <https://cli.github.com/>.
- Klone ein GitHub Repository lokal:
`gh repo clone {{besitzer}}/{{repository}}`
- Erstelle ein neues Issue:
`gh issue create`
- Zeige und filter offene Issues des aktuellen Repositories:
`gh issue list`
- Öffne ein Issue im Standard-Webbrowser:
`gh issue view --web {{issue_nummer}}`
- Erstelle eine Pull Request:
`gh pr create`
- Öffne eine Pull Request im Standard-Webbrowser:
`gh pr view --web {{pr_nummer}}`
- Wechsle lokal zu einer bestimmten Pull Request:
`gh pr checkout {{pr_nummer}}`
- Zeige den Status der Pull Requests eines Repositories:
`gh pr status`