🔀
Top 74 Git & GitHub Interview Questions & Answers (2026)
74 Questions
39 Beginner
22 Intermediate
13 Advanced
About Git & GitHub
This technology is widely used in software development and is a frequent topic in technical interviews at companies of all sizes.
What to Expect in a Git & GitHub Interview
Interviews cover both foundational concepts and practical application of this technology, with questions ranging from definitions to architectural decision-making.
How to Use This Guide
Work through questions in order of difficulty to build your understanding progressively. Bookmark challenging questions and revisit them before your interview.
Curated by Tech Baithak Editorial Team · Last updated: May 2026
Beginner
39 questions
Core concepts every Git & GitHub developer must know.
01
What is Git?
02
What is the difference between Git and GitHub?
03
What is a Git repository?
04
What are the three stages of a file in Git?
05
What is git init?
06
What is git clone?
07
What is git add?
08
What is git commit?
09
What is git status?
10
What is git log?
11
What is git diff?
12
What is a Git branch?
13
What is git merge?
14
What is git pull?
15
What is git push?
16
What is git fetch?
17
What is git stash?
18
What is .gitignore?
19
What is HEAD in Git?
20
What is git checkout?
21
What is git reset?
22
What is git revert?
23
What is a merge conflict and how do you resolve it?
24
What is git tag?
25
What is the difference between git merge and git rebase?
26
What is git rebase?
27
What is a pull request (PR)?
28
What is a remote in Git?
29
What is a fork in GitHub?
30
What is git cherry-pick?
31
What is git blame?
32
What is git show?
33
What are Git hooks?
34
What is git rm?
35
What is git mv?
36
What is git config?
37
What is git bisect?
38
What is the difference between git reset and git restore?
39
What is git shortlog?
Intermediate
22 questions
Practical knowledge for developers with hands-on experience.
01
What is GitFlow workflow?
02
What is trunk-based development?
03
What is squash merging and when should you use it?
04
What is interactive rebase and how is it used for cleaning up commits?
05
What is git reflog?
06
What is git submodule?
07
What is git subtree?
08
What are GitHub Actions?
09
What is branch protection in GitHub?
10
What is the CODEOWNERS file in GitHub?
11
How does GitHub handle SSH authentication?
12
What is git worktree?
13
What is git sparse-checkout?
14
What is GitHub's issue tracking and project management?
15
What is git archive?
16
What is git clean?
17
What is git notes?
18
What is git filter-branch and BFG Repo Cleaner?
19
What is Conventional Commits?
20
What is a monorepo and how does Git support it?
21
What is git large file storage (Git LFS)?
22
What is semantic versioning (SemVer) and how does it relate to Git tags?
Advanced
13 questions
Deep expertise questions for senior and lead roles.
01
How does Git store objects internally?
02
What is a fast-forward merge and when does it happen?
03
What is the difference between origin/main and main in Git?
04
What is git rerere?
05
What is git replace?
06
What is the packfile format in Git?
07
What is the git commit-graph feature?
08
What is Git's garbage collection and how does it work?
09
What are GitHub's repository security features?
10
How does GitHub's pull request merge queue work?
11
What is git commit signing with GPG or SSH?
12
What is the difference between git fetch --prune and git remote prune?
13
How do you handle a monorepo with different services needing independent versioning in Git?
Back to All Topics
74 questions total