Which of the following can be performed within GitHub Desktop?
Correct Answer: C
GitHub Desktop is a graphical interface that allows users to interact with GitHub repositories. It simplifies certain Git operations without the need for command-line usage. GitHub Desktop Capabilities: Option C is correct because GitHub Desktop allows users to add local repositories to their GitHub account, clone repositories from GitHub to their local machine, and manage repositories effectively.
GH-900 Exam Question 67
Why is branching a core concept in Git?
Correct Answer: C
Git allows for isolated development on separate branches and provides tools to combine these changes later, but the user is responsible for initiating the merge and resolving any conflicts that arise. Note: How Git Branching and Merging Works 1. Branching: Developers create branches to work on new features or fixes without affecting the main codebase. Each branch is a pointer to a specific commit. 2. Isolated Development: Work on a feature branch proceeds independently, keeping the main branch stable. 3. Merging: Once a feature is complete, the git merge command is used to integrate the changes from the feature branch back into the main branch. 4. Conflict Resolution: If both the feature branch and the main branch have changed the same part of a file, Git cannot automatically determine which version to keep. This creates a merge conflict that the user must manually resolve by deciding which changes to include in the final version. Incorrect: [Not A] Git Branching doesn't automatically merge changes; merging is a distinct command (git merge) that integrates changes between branches, and it requires user intervention to resolve conflicts when changes overlap. Reference: https://www.w3schools.com/git/git_branch.asp
GH-900 Exam Question 68
Which of the following statements most accurately describes secret gists?
Correct Answer: A
Secret gists on GitHub are "unlisted" gists, meaning they are not publicly discoverable but can be viewed by anyone who has the URL. Visibility of Secret Gists: Option A is correct because secret gists can be viewed by anyone who has the direct URL, making them accessible yet unlisted.