Github: Pull Request - itulah bagaimana ia dilakukan
Dengan permintaan tarik, pemaju dan pengaturcara pada github boleh memasukkan perubahan kepada projek. Kami akan menerangkan bagaimana untuk melakukannya.
Tarik permintaan pada github
Pertama, anda perlu menyediakan akaun github. Jika dikehendaki, anda boleh memasang klien git pada sistem anda atau edit repositori yang dipersoalkan di github:
- Pilih projek / repositori yang berkaitan di github.com: Anda boleh mencari projek melalui Google atau melalui fungsi carian tempatan dalam github.
- Kemudian pergi ke tab "Tarik Permintaan" dalam folder projek.
- Anda kini akan melihat senarai permintaan tarik terbuka yang sedang dibuka. Anda harus menyemak senarai secara ringkas untuk melihat sama ada perubahan yang anda perancangan sudah terkandung dalam salah satu permintaan lain.
- Kemudian klik pada "Permintaan Baru Pull" bidang, kemudian pada "Edit" supaya anda boleh mengedit perubahan anda. Akhirnya, klik pada "Buat Permintaan Pull".
- Kemudian masukkan huraian perubahan anda dan klik "Buat Permintaan Pull".
- Pemaju utama projek kini akan memutuskan sama ada untuk menerima perubahan yang dicadangkan atau tidak. Bergantung kepada projek itu, proses ini boleh mengambil sedikit masa.
- Jika cadangan perubahan anda menghasilkan tarik (ambil + gabungan), maka perubahan anda telah diterima dan dimasukkan ke dalam dasar kod projek.
Dalam artikel seterusnya kami akan menerangkan pemformatan markdown dalam github.