如何删除Github的Wiki主页? [英] How to delete Github's wiki homepage?

查看:273
本文介绍了如何删除Github的Wiki主页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我在Github的Wiki Home页面上输入了密码.然后,我知道这是一个错误.

Today I put my password to Github's wiki Home page. Then, I know it's a mistake.

如何删除此页面? (我可以删除子页面,但是我不知道如何删除Wiki Home页面)

How to remove this page? (I can remove child page, but I don't know how to delete wiki Home page)

推荐答案

Wiki是一个单独的git存储库,因此您可以将其检出并删除文件,就像处理其他任何东西一样.只需将.wiki应用于名称(因此,如果您的存储库名为my_repo,则克隆my_repo.wiki.git而不是my_repo.git)并进行克隆即可.

The wiki is simply a separate git repository, so you can check it out and remove files the same way you would with anything else. Simply apply .wiki to the name (so if your repository is named my_repo, clone my_repo.wiki.git instead of my_repo.git) and clone to do this.

但是,无论如何,您绝对应该更改密码;它被盗了.

However, that said, you should definitely change your password anyway; it is compromised.

Github提供了有关在此处永久清除文件存储库的说明,但是我认为这不值得打扰,因为既然您已经公开了该密码,就永远不要再次使用该密码.您根本不知道谁已经提取了这些信息并进行了查看(并且许多不良行为者定期在Github上运行脚本,专门用于收集错误提交的凭据).

Github provides instructions to permanently purge a repository of a file here but it is my opinion that it's not worth bothering, given that the password should never be used again now that you have exposed it. You simply cannot know who has already pulled down the information and seen it (and numerous bad actors run scripts regularly on Github specifically to harvest credentials mistakenly committed).

这篇关于如何删除Github的Wiki主页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆