How to merge one branch (repo 1) to another branch (repo 2) for commits between two Hash numbers #21766
-
i have a scenario where i am trying to merge one branch in repo A to another branch in repo B, say i want to merge Branch1 (Repo1) --> Branch2 (Repo2) within Branch 1 Hash numbers range 2393878-2349293 here is my code: -
I am new to GIT so requesting brief descriptions along with your answers. Also if there is a better code approach i would request you to post that. Thank You. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @ashishsh51911, thanks for being here. The best route to achieve what you want would actually be to undo or alter the secondary branch such that it contains only the commits you want to be merged in as there is no good way with git to only merge certain commits between a specific range. Let me know if you have any follow up questions! |
Beta Was this translation helpful? Give feedback.
Hey @ashishsh51911, thanks for being here. The best route to achieve what you want would actually be to undo or alter the secondary branch such that it contains only the commits you want to be merged in as there is no good way with git to only merge certain commits between a specific range.
Let me know if you have any follow up questions!