GH-900 practice question 11 of 15

While maintaining the gist history, which of the following is the most efficient way to create a public gist based on another user's gist?

Full set: 144 questions
Answer options
A: Fork the gist. Correct answer
B: Create a new gist and copy the content from the existing gist.
C: Clone the gist.
D: Request to be added to the existing gist.
Correct Answer:
A. Fork the gist.
Explanation

Forking is the most efficient and appropriate method for creating a personal copy of another user's gist while maintaining a clear link to the original. This action creates a new gist under your account but preserves a reference to the "upstream" or parent gist, which satisfies the requirement of "maintaining the gist history." The process is a native, one-click function within the GitHub user interface, making it the most efficient option compared to manual or command-line alternatives.

Why Incorrect

B. Creating a new gist and copying the content is inefficient and severs the historical link to the original gist. The new gist would be entirely independent, with no provenance.
C. Cloning creates a local copy of the gist's repository on your computer. To create a new public gist from it would require multiple additional steps, making it far less efficient.
D. Requesting to be added as a collaborator does not create a new gist based on the original; it grants you permission to edit the existing one, which is not the stated goal.

References

1. GitHub Docs

"Forking and cloning gists." This official documentation explicitly states

"If you want to create your own version of another user's gist

you can fork the gist." It describes forking as the method to create a copy associated with your account while retaining a connection to the original. The process shown is a single click on the "Fork" button.

Source: GitHub

Inc.

Official Documentation.

Section: Get started > Writing on GitHub > Editing and sharing content with gists > Forking and cloning gists.

2. UC Berkeley

Data 100 Course Materials

"Git and GitHub." University courseware often details standard GitHub workflows. This material notes

"You can also fork gists

which is useful for proposing changes to other people's gists." This confirms that forking is the standard

recognized procedure for creating a personal version of another's gist.

Source: University of California

Berkeley

Data 100: Principles & Techniques of Data Science.

Document Reference: ds100/su20/resources/assets/lectures/lec02/02-git-github.html (Example from a past semester).

Scroll to Top