bitbucketにpushできない
事象
新しく作成したレポジトリにpushすると何故かエラーになる
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
パーミッションが通らない、権限がないと言われてしまう。
解決策
色々と格闘した末、下記を打ち込むことで解決した。
(理由はよくわからない…)
※2つのaccountnameには自分のアカウント名、reponameにはレポジトリ名が入る。
$ git remote add origin https://[email protected]/accountname/reponame.git
$ git remote set-url origin https://[email protected]/accountname/reponame.git
参考記事(あとで読み込みたい)
https://stackoverflow.com/questions/16074832/cannot-push-to-git-repository-on-bitbucket/28034014
Author And Source
この問題について(bitbucketにpushできない), 我々は、より多くの情報をここで見つけました https://qiita.com/shumpeism/items/bc62cd4c19f09c36d890著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .