Skip to content

Git and GitHub Basics Questions

Practice questions for Git and GitHub Basics topic in GitHub Foundations. 59 questions covering this domain.

59 questions19 easy30 medium10 hard
Q1
medium

When should you consider using GitHub Desktop instead of the Git command line?

Q2
easy

What does a Git commit represent?

Q3
easy

What is the primary purpose of a version control system like Git?

Q4
medium

What is the primary advantage of a distributed version control system like Git over a centralized one?

Q5
medium

In Markdown on GitHub, how do you create a task list inside an issue or pull request?

Q6
easy

What is a Git branch primarily used for?

Q7
medium

Which GitHub account type is designed for shared ownership of repositories and provides tiered administrative roles?

Q8
medium

In the GitHub Flow, what is the recommended first step before making changes to a project?

Q9
hard

Which command is the standard Git approach for interactively squashing the last three local commits into one before pushing?

Q10
easy

Which Markdown syntax correctly creates a hyperlink in a GitHub issue or pull request?

Q11
medium

What is the purpose of a Git remote?

Q12
medium

Which of the following tasks is GitHub Mobile best suited for?

Q13
hard

What is GitHub Enterprise Cloud primarily designed to provide compared to a free GitHub organization?

Q14
easy

Which of the following best describes the relationship between Git and GitHub?

Q15
medium

A company wants one top-level account that can centrally manage policy and billing across multiple GitHub organizations. What should it create?

Q16
medium

A developer wants a full local copy of a repository, including all versions of every file, so they can work on their laptop. What should they do?

Q17
medium

An organization wants team pull request reviewers and the ability for owners to enable or disable Codespaces for private repositories. Which plan meet...

Q18
easy

Which two deployment options are included under GitHub Enterprise?

Q19
medium

A user wants to create a new repository by copying starter files and branches but without linking commit history to the source repository. Which GitHu...

Q20
medium

In GitHub Flow, after committing changes to a branch and wanting feedback, what is the next collaboration step?

Sign in to see all 59 questions

Create a free account to browse all questions — completely free during our launch phase.