1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/get-started/writing-on-github/editing-and-sharing-content-with-gists/forking-and-cloning-gists.md

34 lines
1.6 KiB
Markdown

---
title: Forking and cloning gists
intro: '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.'
permissions: '{% data reusables.enterprise-accounts.emu-permission-gist %}'
redirect_from:
- /articles/forking-and-cloning-gists
- /github/writing-on-github/forking-and-cloning-gists
- /github/writing-on-github/editing-and-sharing-content-with-gists/forking-and-cloning-gists
versions:
fpt: '*'
ghes: '*'
ghec: '*'
---
## Forking gists
Each gist indicates which forks have activity, making it easy to find interesting changes from others.
## 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 [AUTOTITLE](/repositories/creating-and-managing-repositories/cloning-a-repository).
To clone a gist, select the Embed dropdown menu, then click **Clone via HTTPS** or **Clone via SSH**.
![Screenshot of the "Embed" dropdown menu in GitHub Gist. The dropdown is expanded, and an option labeled “Clone via HTTPS” is outlined in dark orange.](/assets/images/help/gist/gist-clone-btn.png)
## Viewing gist commit history
To view a gist's full commit history, click the "Revisions" tab at the top of the gist.
You will see a full commit history for the gist with diffs.
![Screenshot of the "Revisions" page in GitHub Gist. A tab, labeled “Revisions”, is outlined in dark orange.](/assets/images/help/gist/gist-history.png)