At the project I work on there are two branches: Main and Feature. I have worked on Feature branch and pushed to Gerrit and got some reviews(I have 10 patchsets at the moment on the Feature branch). Now I want to rebase the Feature branch onto the Main branch but also keep the history of reviews and patchsets(so not like a cherry pick which picks just the last commit and does not keep history). Is it possible to do this? I know I can do a merge but will this keep the history of the review that was done on the Feauture branch when I will push the new commit(after merge) to Main?
Thanks for reading!
The correct way to bring the feature to the main branch is to make a merge. Doing a merge is very simple and yes... you'll keep all the history of the review on the Feature branch.
Do the following:
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.