Forking and cloning gists

Gists are actually Git repositories, which means that you can fork or clone any gist, even if you aren't the original author. You can also view a gist's full commit history, including diffs.

Forking gists

Each gist indicates which forks have activity, making it easy to find interesting changes from others.

Gist forks

Cloning gists

If you want to make local changes to a gist and push them up to the web, you can clone a gist and make commits the same as you would with any Git repository. For more information, see "Cloning a repository."

Gist clone button

Viewing gist commit history

To view a gist's full commit history, click the "Revisions" tab at the top of the gist.

Gist revisions tab

You will see a full commit history for the gist with diffs.

Gist revisions page

此文档对您有帮助吗?

隐私政策

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或者, 了解如何参与。