I lost my connection with my previous remote host for a git project - it's gone forever. I have a local copy of of the project - with history - I would like to host on Bitbucket. I created a new project but can't figure out how to push my project up to it. I tried:
git remote add origin git@bitbucket.org:myaccount/myproject.git
git push -u origin master
and
git push --all new-origin
But I always get the following:
error: refs/heads/dev does not point to a valid object!
error: refs/heads/master does not point to a valid object!
error: refs/heads/signalset does not point to a valid object!
<snip>
fatal: The remote end hung up unexpectedly
Any idea how to do this?
I should have mentioned that I know how to push it up there without history (clone the new project, copy the files, add and commit them, and push it). It's a long detailed history that needs to be saved.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.