I\'m getting the following errors in Git using BitBucket:
conq: repository does not exist.
fatal: The remote end hung up unexpectedly
How do I
Did you encounter this error doing the Rails Tutorial?
I did. And I'm very new to this so I was only doing was the tutorial explicitly told me to do. That got me into trouble because in chapter 3 it says it’s a good idea to create a new repository at Bitbucket and push it up but it doesn't hold your hand through the process like it does in Chapter 2.
Don't forget to create the new repository at BitBucket before pushing to that repository.
From Chapter 2: You should also create a new repository by clicking on the “Create” button at Bitbucket.
I did that and it fixed the problem.
In some cases (maybe not yours) you may have to change
url = git@guthub.com:username/projectname.git/
to
url = https://github.com/username/projectname.git/
using the Nano editor, say:
nano .git/config
I managed to do this in the end by removing the origin and re-adding it. Everything seemed ok after I did this.
I was able to solve this problem by navigating into the submodule's root directory and using the following command.
git push -v origin master
I stumbled across this at here which also has some other troubleshooting steps that may be of use.
git remote rm origin
git remote add origin git@github_or_bitbucket_or_whatever_link
You get this error if the remote repository hasn't been created. Bitbucket is running a service called conq
that handles pushes and you see the error message from it. Simply create a new (empty) repository and the push should succeed.
Here I'm pushing to a non-existing repository:
$ git push git@bitbucket.org:mg/testt.git master
conq: repository does not exist.
fatal: The remote end hung up unexpectedly
and here I push to the correct path:
$ git push git@bitbucket.org:mg/test.git master
Counting objects: 3, done.
Writing objects: 100% (3/3), 203 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: bb/acl: mg is allowed. accepted payload.
To git@bitbucket.org:mg/gtest.git
* [new branch] master -> master
The test
repository was newly created on Bitbucket. If the problem persists, then I suggest deleting the empty repo from Bitbucket and re-creating it.