前提・実現したいこと
最近学習を始めたばかりのド素人です。
rails tutorialに沿って進めていましたが「1.4.3 Bitbucket」で詰まってしまいました。
$ git push -u origin --all
でエラーが出てしまい、先へすすめなくなってしまいました。。。
発生している問題・エラーメッセージ
imuyumi:/environment/hello_app (master) $ git remote add origin git@bitbucket.org:imuyumi/hello_app.git/environment/hello_app (master) $ git push -u origin --all
imuyumi:
The authenticity of host 'bitbucket.org (18.205.93.0)' can't be established.
RSA key fingerprint is SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A.
RSA key fingerprint is MD5:97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'bitbucket.org,18.205.93.0' (RSA) to the list of known hosts.
To bitbucket.org:imuyumi/hello_app.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@bitbucket.org:imuyumi/hello_app.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
試したこと
git pull,
git remote rm origin など、試す。
rails new ですべて新しく作り直す。
開発環境を全部消してからすべてやり直す。
レポジトリを作り直す。
→上記すべて何回か試したのですが、同じエラーがでます。。。
本物のずぶのド素人で、こういう場で質問させて頂くのも初めてです。
質問内容に不備があったら申し訳ございません。足りない情報があれば申し付けて下さい。
お解りになる方、ぜひご回答をお願い致します。。。。
あなたの回答
tips
プレビュー