GitHub for Windows is showing old README text

风格不统一 提交于 2019-12-22 11:35:12

问题


There is a panel on the right that is supposed to show current content of README.MD. However, I noticed that after changing the content of REAMDE.MD is hasn't updated the text in the panel. Is there a way to forcefully refresh it?

The version of GitHub for Windows I have is 1.0.41.2 (fd3fd236ac85e622194e88f248576b9fe25d28d4)


回答1:


Yeah, sorry about that. It's a bug and we're working on it. It's currently cached for 30 minutes and sometimes it doesn't expire when it should.

The only way to force a refresh currently is to either delete the entire folder at %LocalAppData%\GitHub\BlobCache.api.github.com or to locate the file in that folder that holds the README content (by looking for keywords that would appear in the README for example) and deleting that.




回答2:


After a quick search in the \AppData\Local\GitHub folder I found that the old value from README.MD is stored in one of the files in the BlobCache.api.github.com. Deleting the whole folder and restarting the app solved the issue.

Still wondering if there is a proper way for doing that from UI? Shouldn't it happen automatically anyway?




回答3:


This came from GitHub staff. It tells you how to clear the cache.

WARNING: This will remove GH4W's references to your local repositories and your logged-in account. You will have to log in again and let GH4W re-scan your computer for repositories.

There's a known bug where we cache the 'NO README' view if you add a README after adding the repository to GitHub for Windows.

If you'd like to try to get the README to show up, you can delete the cache:

Here are the steps you will need to follow to delete the cache:

  1. Close GitHub for Windows
  2. Open the Git Shell
  3. Run 'github —delete-cache' to clear our the GitHub for Windows cache
  4. Restart GitHub for Windows — you will need to log in and add your repositories again


来源:https://stackoverflow.com/questions/16049744/github-for-windows-is-showing-old-readme-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!