Version control - Github received a pull request and new code was added locally. How to merge the github code into the local code?
黄舟
黄舟 2017-05-02 09:33:56
0
2
566

The situation is like this, assuming that commit A is in a certain github, and commit A is also committed locally. At this time, I wrote some new code locally and reached commit B. At this time, I received a pull request on github, github When I reach commit C, I want to synchronize the github code to the local while keeping the code under commit B from being overwritten. What should I do? Looking for a solution.

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
迷茫

You can just git pull directly. If there is a conflict, just resolve the conflict

Peter_Zhu

If you don’t want to be overwritten, just open another branch and pull request. Once your code is written, merge it into the newly opened branch and submit it again

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template