Please forgive me if I didn't express it clearly in the title.
I have one project which is cloned from upstream. And now it is 1.5 in our branch without lots of our in house commits on it. Now the upstream will release 1.6, and we'd like to upgrade 1.6 too but keep our changes. In this case what should I do ? Thanks
There are many ways of doing it, but one of the simplest way is in below steps:
git remote add upstream < upstream url >
git fetch upstream
git checkout -b new_branch
git rebase --autosquash --interactive commit-id
It will play all your local patches to the upstream 1.6 version code. Resolve the conflicts and you have now a new_branch with version 1.6 along with your local changes.
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.