我执行的步骤:
我有两个分支1和2,
$git branch --Initial state
$branch1
$git checkout branch2
$git pull origin branch1 --Step1
我解决了冲突,做了一个
$git commit -m "Merge resolved"
那么
$git checkout branch1
$git merge branch2
$git push origin branch1
Now I realised that while being at step1, the auto merging removed some code and the change code was pushed. Now I want to go back to my initial state in order to revert any changes. Looking for some immediate help?