2025-03-14 21:59:59 -06:00
|
|
|
# gh
|
|
|
|
|
|
|
|
|
|
> Arbeite mit GitHub von der Konsole aus.
|
|
|
|
|
> Manche Unterbefehle wie `config` sind separat dokumentiert.
|
2025-06-28 19:25:29 -06:00
|
|
|
> Weitere Informationen: <https://cli.github.com/manual/gh>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Klone ein GitHub Repository lokal:
|
|
|
|
|
|
|
|
|
|
`gh repo clone {{besitzer}}/{{repository}}`
|
|
|
|
|
|
|
|
|
|
- Erstelle ein neues Issue:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Zeige und filter offene Issues des aktuellen Repositories:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[ls|list]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Öffne ein Issue im Standard-Webbrowser:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue view {{[-w|--web]}} {{issue_nummer}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Erstelle eine Pull Request:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh pr {{[new|create]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Öffne eine Pull Request im Standard-Webbrowser:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh pr view {{[-w|--web]}} {{pr_nummer}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Wechsle lokal zu einer bestimmten Pull Request:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh {{[co|pr checkout]}} {{pr_nummer}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Zeige den Status der Pull Requests eines Repositories:
|
|
|
|
|
|
|
|
|
|
`gh pr status`
|