当我在 github 上创建项目时,我设置了一个自述文件,该文件现在显示在项目页面上。我决定切换到 Readme.md,这样我就可以添加一些格式,但 github 仍然显示原始 README 文件。我尝试删除 README 并删除 README 和 Readme.md,然后重新添加 Readme.md,但原始 README 仍在项目页面上。
最佳答案
这可能是缓存问题,因为您的 GitHub 项目页面的源代码包括:
<!-- readme cache key: tree-readme:2188350:07c93010a313c998bb0d7c69f54b7d50525ca75e -->
<div id="readme" class="clearfix announce instapaper_body ">
<span class="name"><span class="mini-icon mini-icon-readme"></span> README</span>
<div class="plain"><pre># Pale
Pale is a simple PHP library that allows a developer to easily convert errors to exceptions without having to worry about the details of changing and restoring error handlers.
## Usage
```php
use Pale;
try {
Pale\run(function() {
trigger_error("this will become an exception");
});
} catch(ErrorException $e) {
var_dump($e);
}
```
</pre></div>
“缓存键:tree-readme:2188350:07c9301...
”表明该页面的内容可能会在接下来的几个小时内更新。
关于github - 将 README 更改为 Github 上的 Readme.md,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13842987/