本文介绍了Git-如何从远程存储库中删除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从远程git存储库中删除文件?我有一个刚刚从工作副本本地存储库中删除的文件,我想从相应的远程存储库中删除它
How can I delete file from remote git repository?I have a file that is just deleted from working copy local repository, and I want delete it from corresponding remote repository
推荐答案
如果从工作树中删除了文件,则提交删除:
If you deleted a file from the working tree, then commit the deletion:
git commit -a -m "A file was deleted"
并将您的提交推送到上游:
And push your commit upstream:
git push
这篇关于Git-如何从远程存储库中删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!