The problem is that I have created a branch and have not made any changes. I have upgraded several master versions. Now it's stable. I want to modify it in the branch without affecting the main branch. How to update the old branch?
Baidu has many answers and there is no reliable method. According to my current understanding of GitHub, if the branch is directly merge to the primary branch, it is definitely not correct. Take the primary branch merge to the branch. It looks like this is acceptable, but it is too risky. In case the primary branch is changed, it will be a tragedy.
Solution:
Update the original master, create a new local branch, and then use the new branch to go to the Branch before merge. Then, the previous branch is changed to the latest version. Why should I keep the old branch because the branch name is good. Also, if some code in the previous branch cannot be deleted, this method is nice!
This article is from the "lu Xiao fish" blog, please be sure to keep this source http://2199572.blog.51cto.com/2189572/1560814
How can I update the old GitHub branch from the master?