I have two branches. Say, the first one commit’s checksum is 11223344, the second one has 55667788. How to assign the commit 55667788 to the first branch?
I have two branches. Say, the first one commit’s checksum is 11223344, the second
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you simply want to apply the changes in commit
55667788to branchfirst, you can just usecherry-pick.If you are actually after importing all commits that
secondhas thatfirstdoesn’t (including55667788) you would merge it.The
--no-ffargument is made clear here(From nvie.com, Vincent Driessen, post “A successful Git branching model“)