Skip to main content
Cloud & DevOps

Git & GitHub Version Control Skill Assessment Quiz (2026)

15 Questions15 MinsPass: 80%

Test your mastery of Git: Interactive rebasing, merge vs rebase, soft/mixed/hard resets, cherry-picking, detached HEAD, reflog, and bisect.

Question 1 of 150% Completed
Single Choice

What is the difference between `git merge` and `git rebase`?

Select an option above

Git: Assessment Scope & Sample Focus Areas

15 questions • 80% pass target

This interactive technical assessment checks your practical understanding of Git (Cloud & DevOps) across syntax behavior, edge cases, and architectural decisions.

Topic 1 of 15

What is the difference between `git merge` and `git rebase`?

Topic 2 of 15

What is the difference between `git reset --soft`, `--mixed`, and `--hard`?

Topic 3 of 15

What is a 'Detached HEAD' state in Git?

Topic 4 of 15

How can you recover a commit that was deleted or lost due to a bad `git reset --hard`?

Topic 5 of 15

What does `git cherry-pick <commit-hash>` do?

Topic 6 of 15

What is `git bisect` used for in debugging?

Frequently Asked Questions

Git Assessment: Key Technical Questions & Answers

5 Questions Answered
1What is the internal difference between a Git Commit, Tree, Blob, and Tag object?
Git is a content-addressable store. A Blob stores raw file content keyed by its SHA-1/SHA-256 hash (no filenames or permissions). A Tree represents a directory listing, mapping blob hashes to filenames, modes, and sub-trees. A Commit points to a root tree object and contains metadata: parent commit hash(es), author, committer, timestamp, and message. An Annotated Tag is an immutable reference pointing to a specific commit with cryptographic GPG signatures.
2What is the difference between `git merge --no-ff`, `git merge --squash`, and `git rebase`?
`git merge --no-ff` creates a merge commit preserving the full branch history and branching topology. `git merge --squash` compresses all branch commits into a single staged change, creating one clean commit on the target branch without merge parents. `git rebase` rewrites history by replaying branch commits sequentially on top of the target branch tip, creating a linear history at the expense of rewriting commit SHAs.
3How do `git reset`, `git revert`, and `git checkout` differ when undoing changes?
`git reset` moves the current branch pointer backward, modifying HEAD, Index (staging), and optionally working directory (`--soft`, `--mixed`, `--hard`), which rewrites history. `git revert` creates a new forward commit that applies the exact inverse diff of target commits, making it safe for public shared branches. `git checkout` switches branches or restores working tree files without modifying commit history.
4What is `git reflog` and how does it recover 'lost' commits or deleted branches?
The reference log (`reflog`) records every time HEAD or a branch reference moves (via commit, checkout, rebase, reset, or pull) on your local machine. Even if a branch is deleted or a `git reset --hard` removes commits from history, the dangling commits remain recorded in the reflog for typically 30 to 90 days before garbage collection (`git gc`), enabling full recovery via `git checkout <reflog-sha>`.
5What are Git submodules versus Git subtrees for managing shared code across repositories?
A Git Submodule links an external repository by recording a specific commit SHA in a `.gitmodules` file; parent repositories store only the pointer, requiring collaborators to run `git submodule update --init`. A Git Subtree embeds the external repository directly into the parent repository's commit tree as regular files, simplifying cloning and editing without requiring submodule commands.

Next Steps for Mastery

Reinforce your knowledge with cheatsheets, interactive sandboxes, and interview prep.