I had a project, called 'A' which had quite a long Git history. At some point in the project 'A' switched IDE's, and unknown to the developer it disconnected from the git repo, and created a new local repo, lets call that 'B'.
'B' has had several commits, but is still based off the most recent commit of 'A', which has been unchanged since the diversion.
Now I'd really like to bring 'B' back into 'A', but keep its commits if possible. Could anyone lend some advice on how to achieve this?
edit: was marked as a duplicate of this however, in that example the 2nd repo is not a mirror of the first, instead it is a seperate module which wants to be added to the project, whereas in this example it is intended to replace the original.