简体   繁体   中英

How can i merge a git commit from a different branch?

与开发人员合作,我想将他分支中的选定提交合并到我的分支中并将其推送到生产中。

You can use git cherry pick

  • First go the the branch where you can to merge the commit (here your own branch)
  • Now copy the SHA id of the dev's commit
  • git cherry-pick sha-id

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM