前提・実現したいこと
railsチュートリアル第3章を実施中に発生しました。
変更点をコミットしてbitbucketにプッシュしたい。
環境はクラウドIDEを使用しています。
発生している問題・エラーメッセージ
ec2-user:~/environment/sample_app (master) $ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
試したこと
①git init、git add、git commitで変更をコミット
②bitbucketで新しいリポジトリを作成(sample_app)
③git remote add origin git@bitbucket.org:ユーザー名/sample_app.git
④git push -u origin --all
リモートリポジトリ作成コマンド
git remote add origin git@bitbucket.org:Tsubasa_Rails/sample_app.git ec2-user:~/environment/sample_app (master) $ git remote -v origin git@bitbucket.org:Tsubasa_Rails/sample_app.git (fetch) origin git@bitbucket.org:Tsubasa_Rails/sample_app.git (push)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/07 23:32 編集
2018/11/08 00:56
2018/11/10 00:50