gpt4 book ai didi

GitHub Gist : RAW Permalink won't update

转载 作者:太空狗 更新时间:2023-10-29 13:30:26 40 4
gpt4 key购买 nike

我有一个 Gist 原始版本的 URL,但它不会总是更新。假设我得到了原始链接

https://gist.githubusercontent.com/username/27610b513177a762470ac95160c050fd/raw/f567a5ade06c9b8e7c101fe62fa3a4cac07e5bd7/test%2520gist

但我更改了该 Gist 的内容,URL 将更改,第一个链接不会包含更改。

https://gist.githubusercontent.com/username/27610b513177a762470ac95160c050fd/raw/60e3b421faa7e4e9ea6cd27e4a6ffd4809d3d40e/test%2520gist

我如何创建一个永久链接,该链接将永远包含所有更改,而不仅仅是该链接的修订版?

我试过使用 ID,只是 id/raw 但 ID 甚至不像其他人所说的那样是一个数字,它更像是一个散列,有人可以帮忙吗?

更新:

我已经尝试了[建议的答案],但它仍然导致最后一次修订,是否延迟更新?

最佳答案

the ID isn't even a number like other people say, its more like a hash

是的,gist is a git repo

作为explained here通过 Mark Engel :

Imagine you want to host a json configuration file somewhere. You also don’t want to host it yourself, but would prefer to rely on a stable provider.

You can use gist.github.com for this job.

For example this gist. You can see that there are 2 revisions.

If you click on raw you get the current version

In each version you see two hashes.

  • One hash is equal in both hashes. This is the hash of the gist
  • The other hash is the hash of the commit.

If you remove the last one the raw file always points to the latest revision

https://gist.githubusercontent.com/mren/17da9837f691acd2e8ae/raw/config.json

关于GitHub Gist : RAW Permalink won't update,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47066049/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com