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 questionsForking 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.
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.
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).
Keep practicing
Take the free GH-900 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GH-900 practice questions
- Question 1What is the difference between an organization member and an outside collaborator?
- Question 2New open source contributors can receive funding from GitHub sponsors:
- Question 3An employee needs to find all issues within organization “Avocado" containing text "404 e…
- Question 4How are commits related to pull requests?
- Question 5Where should a repository admin navigate to view pre-built visualizations from repository…
- Question 6Who can be assigned to an Issue or pull request? (Each answer presents a complete solutio…
