私は新しい変更をプッシュしようとしていますが、競合するファイルがあります。プッシュしようとすると、次のエラーが表示されます。Gitは私を引き出して、コミットしてから引っ張るように指示しますか?
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を使用する必要があります。 私はgit pull
を使用しようと、私はこのエラーを取得する:
error: Your local changes to the following files would be overwritten by merge:
db/profile_edit.php
Please, commit your changes or stash them before you can merge.
しかし、私がコミットしようとしたとき、私は戻って最初のエラーに行きます。私は何をすべきか?リモートリポジトリの変更は、ローカルマシンの変更よりも新しいものです。ですから、どのようにdiffツールを使ってそれを開き、変更を加えて、私が変更を加えたことをgitに伝えれば、私は変更をプッシュできますか?
+1、すてきな説明 – sha256