前提・実現したいこと
ruby on railsチュートリアルの3章3.1で、sample_appをbitbucket上のリポジトリにpushしたいのですが、エラーがでてうまくいきません。
発生している問題・エラーメッセージ
git push -u origin --all
To bitbucket.org:takayukiota/sample_app.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@bitbucket.org:takayukiota/sample_app.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and 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 remote add origin git@bitbucket.org:ユーザー名/sample_app.git
$ git push -u origin --all # リポジトリやその参照先もすべてプッシュする
試したこと
bitbucketにsample_appというリポジトリは作成してあります。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。