如何从 github.com 上的存储库中删除文件?
我正在使用 git for windows 用户界面将文件 checkin github 存储库,但我将错误的 readme.rtf 文件 checkin 了 github。
我在 github 远程存储库的任何地方都没有看到“删除”选项。
最佳答案
来自GitHub自己的support page :
Browse to the file in your repository that you want to delete.
At the top of the file, click (trashcan icon).
At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is master, you should choose to create a new branch for your commit and then create a pull request.
Click Propose file change.
此列表中的第 1 步意味着单击您希望从上面的屏幕截图中删除的文件,以便您查看文件本身。
关于git - 如何从 github.com 上的存储库中删除文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37845374/