GitHub seems to be a bit lost after a couple of operations - and I certainly am...
So, here is the story:
I am new to git, and new to github. In my repository I had a branch (let's call it B
) where I was working on a feature.
- To make things transparent I created a pull request.
- My collaborator (complete git/github newbie) clicked to merge the pull request (probably just exploring the interface).
- The feature was not ready so I reverted the merge.
Now I would like to continue my work on the branch B and later merge it, but although the branch is is different by more than 800 lines GitHub shows that there is only one line of difference (one commit).
This may be because I was trying to reopen the old pull request after reverting the changes. I did reopen the pull request but the option to merge was no longer available. I tried closing or opening the old pull request and creating a new pull request (pulling branch B
to master
) but this shows only one commit as if all the rest was eaten up by the original pull request (although reverted). But if I try to pull master
to B
- it shows all the differences (about +800/-300 difference).
I would like to be back to work peacefully on branch B
- I would like to be back to the moment when B
could be automatically merged (now it is not possible becasue new pull requests show only one minor difference between B
and master
while the actual difference is different). What is the easiest way to do so?