10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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
10
10
0

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
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?