私はgithubが初めてです。私はgithubから取得したコードに取り組んでいます。これで変更が完了し、コードを github にプッシュしたいと思います。作業した元のコードのフォークを作成し、開発したコードをそのフォークにプッシュしたいと考えています。ただし、開発に取り組んでいる間に、元のコードにいくつかの変更がありました。したがって、新しいコードをフォークにプッシュしようとすると、次のエラーが発生します。
git push original master
To https://github.com/<username>/<projectName>.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/<username>/<projectName>.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
それから私は使用しました
git pull
以下を出力しました:
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.
ここから先は進めません。プロジェクトをコミットするにはどうすればよいですか?