! . . Album Hình . . !

Tìm kiếm Những Gì Bạn Thích !

5 tháng 9, 2025

Git cherry pick PR to another branch

 In main branch

We already merged PR 2677 into the releases/Sprint-50 branch, We want to cherry pick this PR to the main branch.

Follows steps:

Open CMD(PowerShell) and parse the commands belows

$mergeCommit = git log origin/releases/Sprint-50 --merges --oneline | Select-String "#2677" | ForEach-Object { ($_ -split ' ')[0] }

git checkout -b pr-2677-to-main

git cherry-pick -m 1 $mergeCommit

git add.

git commit -m "cherry pick PR 2677 into main branch"

git push origin pr-2677-to-main

Open git and create new PR from pr-2677-to-main to main

Hướng dẫn đăng nhận xét của bạn

  • Nếu muốn đăng nhận xét của mình các bạn click vào "Xem và nhận xét ở đây" dưới mỗi bài đăng, sau đó hộp thoại xuất hiện bạn gõ vào những nhận xét của mình. thế là xong! cảm ơn các bạn đã ghé thăm blog của mình !