Node - Two local git branches have different versions, and the merged code loses code
漂亮男人
漂亮男人 2017-05-02 09:46:49
0
1
684

Before New Year’s Day, I wrote a lot of code on branch a from Monday to Friday, and then submitted a merge request to develop, and then merged it, but it was not online. Since I didn't test it, I got it back first, and develop returned the previous version.
I had an urgent need on Friday afternoon. I pulled a new branch b from master, wrote some code, merged it and put it online.
Then I pulled the latest code from my local master online and merged the master on branch a. At this time, the code of my branch a has become master, and the code written by my branch a is gone.
How can we combine them so that they are not too small?

漂亮男人
漂亮男人

reply all(1)
给我你的怀抱

I think you should first restore your a-part log to the version you last submitted, and then commit一下,再把对应的主干分之master合并过来,在执行push

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