githubアカウント2件を1つのPC管理運用し始めたのち、git push origin master を実行すると以下のエラーが表示されpushできなくなりました。
! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'github.com:アカウント名/プロジェクト名.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.
エラーを確認後、git pull origin master ならびに git merge --allow-unrelated-histories origin/master の実行を試したところ、多くのファイルで CONFLICT の状態となりました。
git_pull_origin_master
1From github.com:アカウント名/プロジェクト名 2 * branch master -> FETCH_HEAD 3fatal: refusing to merge unrelated histories
その際、該当ファイルのHEAD(Current Change)とorigin/master(Incoming Change)箇所を確認したところ、origin/master(Incoming Change)の箇所に、開いているプロジェクトと別のプロジェクト(別のgithubアカウントで管理中)で管理しているのコードが表示されておりました。
VS Codeでは、上記で開いているプロジェクトを管理しているgithubにログイン中の状態です。
githubアカウント2件のSSH KEYを設定する際の方法に誤りがあったのか、
その他の要因により事象が生じているか見当がつかない状況です。
当方、初心者であり質問方法がクリアでない点が多いかと存じますが、
お力をいただけますと幸いです。
何卒よろしくお願いいたします。