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
这也应该从本地仓库中删除远程仓库中的文件。