Cara Mengakses Pull Request Tertentu di GitHub
Langkah Mudah Mengakses Pull Request di GitHub

Berikut adalah setting konfigurasi pada git agar memudahkan kita untuk checkout ke spesifik pull request berdasarkan nomor pull request nya.
Cek lokasi file
.gitconfigdi komputer kalian dengan menjalankan command berikut:
git config --list --show-originBuka file
.gitconfigTambahkan script berikut:
[remote "origin"]
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*Clone repo kalian lalu buka menggunakan editor kesukaan kalian.
Jalankan command berikut untuk checkout ke speifikasi pull request berdasarkan nomornya:
git checkout pr/<nomor_pull_request>Selesai
About the author
A software engineer, coding instructor, and creator of Mongoloquent ORM. Active in communities and contribute to open-source projects.
Comments
Join the discussionNo comments yet. Be the first to comment.




