Say that my very top and newest commit is A and the next after that is B and the next after that is C. How can I do git rebase if I want to combine commit B and C?
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.
The easiest is with an interactive rebase
This will bring up your last three commits with
pickin front of each. If you change the second instance ofpicktosquashand then save the file and exit, this will squash the two commits together.