2025-03-14 21:59:59 -06:00
|
|
|
# gh
|
|
|
|
|
|
|
|
|
|
> Memudahkan pengaksesan GitHub dari command-line.
|
|
|
|
|
> Beberapa subcommands seperti `gh config` memiliki dokumentasi sendiri.
|
2025-06-28 19:25:29 -06:00
|
|
|
> Informasi lebih lanjut: <https://cli.github.com/manual/gh>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Mengklon sebuah GitHub repositori di lokal:
|
|
|
|
|
|
|
|
|
|
`gh repo clone {{pemilik}}/{{repositori}}`
|
|
|
|
|
|
|
|
|
|
- Membuat isu baru:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Melihat dan filter issue yang sedang open pada repositori:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[ls|list]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Melihat isu di browser:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue view {{[-w|--web]}} {{nomor_isu}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Membuat sebuah pull request:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh pr {{[new|create]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Melihat pull request di browser:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh pr view {{[-w|--web]}} {{nomor_pr}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Mengecek pada local branch sebuah pull request, diikuti dengan nomor pull requestnya:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh {{[co|pr checkout]}} {{nomor_pr}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Mengecek status pull request pada sebuah repository:
|
|
|
|
|
|
|
|
|
|
`gh pr status`
|