Skip to content

Commit 38298d5

Browse files
author
Randy Pagels
committed
Add instructions for forking and cloning gists, and managing wiki pages
1 parent 1dd7d75 commit 38298d5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

learn-pr/github/introduction-to-github/includes/2-what-is-github.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,48 @@ Now that we have a good understanding of repositories, we can review gists. Simi
126126

127127
Every gist is a Git repository, which you can fork and clone and be made either public or secret. Public gists are displayed publicly where people can browse new ones as they’re created. Public gists are also searchable. Conversely, secret gists aren't searchable, but they aren’t entirely private. If you send the URL of a secret gist to a friend, they'll be able to see it.
128128

129+
### Forking and cloning gists
130+
131+
You can fork a gist to create a copy of someone else's gist in your account.
132+
133+
1. Navigate to the gist you want to fork.
134+
2. Select **Fork** at the top-right of the gist page.
135+
136+
To clone a gist locally:
137+
138+
```bash
139+
git clone https://gist.github.com/your-gist-id.git
140+
```
141+
129142
To learn more about gists, see the linked article in our Resources section at the end of this module titled *Creating Gists*.
130143

144+
---
145+
131146
### What are wikis?
132147

133148
Every repository on GitHub.com comes equipped with a section for hosting documentation, called a wiki. You can use your repository's wiki to share long-form content about your project, such as how to use it, how you designed it, or its core principles. While a README file quickly tells what your project can do, you can use a wiki to provide additional documentation.
134149

135150
It’s worth a reminder that if your repository is private, only people who have at least read access to your repository will have access to your wiki.
151+
152+
### Creating, editing, and deleting wiki pages
153+
154+
You can use the GitHub wiki to create and manage documentation for your project.
155+
156+
**To create a wiki page:**
157+
158+
1. Navigate to the repository.
159+
2. Select the **Wiki** tab.
160+
3. Select **Create the first page** if no pages exist, or **New Page** to add a page.
161+
4. Enter a title and content, then select **Save Page**.
162+
163+
**To edit a wiki page:**
164+
165+
1. Navigate to the wiki page you want to edit.
166+
2. Select **Edit** at the top-right.
167+
3. Make changes and select **Save Page**.
168+
169+
**To delete a wiki page:**
170+
171+
- Deleting a wiki page requires using Git. Clone the wiki repository, remove the file, and push the change.
172+
173+
Learn more about managing wikis in [GitHub Docs - Adding or editing wiki pages](https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages).

0 commit comments

Comments
 (0)