前提
Railsチュートリアルに沿って勉強しているプログラミング初心者です。
チュートリアルでの推奨通りbitbucketでコミット・リポジトリ管理を試みています。
困っていること
チュートリアルに沿って取り組んでいたところ、bitbucketへのプッシュのタイミングで下記の文言が出てきてうまくいきません。
ec2-user:/.ssh (master) $ git remote add origin git@bitbucket.org:ユーザー名/リポジトリ名.git/.ssh (master) $ git push -u origin --all
fatal: remote origin already exists.
ec2-user:
To bitbucket.org:ユーザー名/リポジトリ名.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@bitbucket.org:ユーザー名/リポジトリ名.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.
補足
bitbucketのリポジトリには現在”README.md”しか存在していません。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/20 09:44