LoginSignup
10

More than 5 years have passed since last update.

bitbucketにpushできない

Posted at

現象

新しく作成したレポジトリにpushすると何故かエラーになる

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解決策

bitbucketに再度sshキー登録したらpushできた

sshキーの登録はこちらからできる(XXXは自分のID入れる)
https://bitbucket.org/account/user/XXXXXXXX/ssh-keys/

違うレポジトリには普通にpushできるのでsshキーが登録されてないってことはないと思ったのだが、何がいけなかったのか。

前やった時はリモートの設定を削除して登録しなおしたら出来たんだけどな

git remote rm origin
git remote add origin git@bitbucket.org:XXXXXXXX(ID)/XXXXX(レポジトリ名).git

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10