I careless copied .git
from one project (A) to another (B), with a remote scp -r (A) (B)
.
I would like to recover a usable state of the git repo. I can remove (A)'s .git objects. From there, how can I best go about finding tips of git branches and rebuilding a useful state of the repo.
Unfortunately, I don't have another copy of (B), and my mistake wiped out the metadata.