git - 如何从 github.com 上的存储库中删除文件?

标签 git github

如何从 github.com 上的存储库中删除文件?

我正在使用 git for windows 用户界面将文件 checkin github 存储库,但我将错误的 readme.rtf 文件 checkin 了 github。

我在 github 远程存储库的任何地方都没有看到“删除”选项。

My repository on 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/

相关文章:

git - 如何从暂存中删除而不实际删除

git diff merge-base 与工作树(使用 ... 符号)

git - 没有什么可以比较的。没有什么可比较的,分支是完全不同的提交历史

github - 有没有办法从 GitHub 创建带注释的标签?

git - Github 如何允许内联文件编辑? (或者如何在裸 git 存储库中添加或编辑文件)

Kamailio 表中的 MySQL 排序规则

git fetch 用 tmp_pack 文件填充磁盘,永远不会完成

git - Git 和 GitHub Desktop 是完全独立的应用吗?

git - 如何对一系列分支进行 rebase ?

Git,忽略的文件出现在每个分支中