Skip to main content

Cara Mengakses Pull Request Tertentu di GitHub

Langkah Mudah Mengakses Pull Request di GitHub

Updated 1 min readMarkdown
Cara Mengakses Pull Request Tertentu di GitHub

Berikut adalah setting konfigurasi pada git agar memudahkan kita untuk checkout ke spesifik pull request berdasarkan nomor pull request nya.

  1. Cek lokasi file .gitconfig di komputer kalian dengan menjalankan command berikut:
    git config --list --show-origin

  2. Buka file .gitconfig

  3. Tambahkan script berikut:
    [remote "origin"]
    fetch = +refs/pull/*/head:refs/remotes/origin/pr/*

  4. Clone repo kalian lalu buka menggunakan editor kesukaan kalian.

  5. Jalankan command berikut untuk checkout ke speifikasi pull request berdasarkan nomornya:
    git checkout pr/<nomor_pull_request>

  6. Selesai

27 views

About the author

  • A software engineer, coding instructor, and creator of Mongoloquent ORM. Active in communities and contribute to open-source projects.

No comments yet. Be the first to comment.