前提
Git-hub初心者です。ずいぶん前から、Git-hubにはアカウントを持っていて、VS codeも使っているのですが、何度やってもGit-hubとVS codeの連携がうまくいきません。
まず、コミットはできているのですが、リモートにプッシュすることができません。
発生している問題・エラーメッセージ
エラーメッセージ 参照仕様をリモートにプッシュできません。最初に 'Pull' を実行して変更を統合してください。 ### コマンド出力を表示する をクリックすると以下のメッセージが出力されます。↓ > git push origin main:main To https://github.com/++++++++++/P2.git ! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'https://github.com/majayaka/P2.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
「最初に 'Pull' を実行して変更を統合してください。」はやりました?

回答1件
あなたの回答
tips
プレビュー