Back to Tech Interviews
Git Version Control Interview
Curated 20+ questions covering local/remote git operations, staging, branches, rebase, cherry-pick, reset, and revert.
Total: 20 QuestionsLearned: 0 / 20 (0%)
Difficulty Filters
Tools & Options
Showing 20 of 20 questions
Beginner
What is Git, and what is a Distributed Version Control System (DVCS)?
Beginner
What are the three main states/areas in Git?
Intermediate
What is the difference between `git pull` and `git fetch`?
Intermediate
Explain the difference between `git merge` and `git rebase`.
Beginner
What is a fast-forward merge?
Intermediate
What is `git stash`, and when is it used?
Intermediate
What is the difference between `git reset` and `git revert`?
Advanced
Explain the differences between `git reset --soft`, `--mixed`, and `--hard`.
Intermediate
What is `git cherry-pick`?
Advanced
What is `git reflog`?
Beginner
What is a merge conflict, and how do you resolve it?
Beginner
What is a Git commit hash (SHA-1)?
Advanced
Explain Git hooks.
Beginner
What is the purpose of the `.gitignore` file?
Beginner
How do you view the commit history in Git?
Intermediate
What is `git checkout` vs `git switch`?
Intermediate
How do you rename a branch in Git?
Advanced
What is a detached HEAD state, and how do you resolve it?
Intermediate
Explain the difference between origin and upstream in Git.
Scenario
