Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルを削除した後、ローカルリポジトリをコミットしてプッシュしましたが、リモートリポジトリと同期できませんでした。削除したファイルは、リモートリポジトリのままです。
ローカルリポジトリからファイルを削除した場合は、削除をコミットします。
git commit -a -m "A file was deleted"
そして、コミットをリモートにプッシュします。
git push
これにより、ローカルリポジトリから行ったファイルもリモートリポジトリから削除されます。