InterviewPitch

Land the job you want — prepare
with Real interviews Q&A

Curated interview questions, company-wise guides and coding rounds. Practice mock interviews, improve with feedback, and track your progress.

Q&A
Top curated interview packs
Company-wise & role-wise packs, quality assured.
Start a quiz
Instant scoring
All Interview Q&A
50 plus topics
Beginner
1. What is Git?
Git is a distributed version control system used to track code changes.
Beginner
2. What is a repository?
A repository (repo) is a storage location for your project files and history.
Beginner
3. What is the difference between Git and GitHub?
Git is a version control tool; GitHub is a cloud hosting platform for Git repositories.
Beginner
4. How do you initialize a Git repository?
git init
Beginner
5. How do you clone a repository?
git clone <repo-url>
Beginner
6. What is git add?
Adds changes to the staging area.
Beginner
7. What is git commit?
Saves staged changes to the repository history.
Beginner
8. What is git status?
Shows the current state of working directory and staging area.
Beginner
9. What is git log?
Displays commit history.
Beginner
10. What is a branch?
A branch is an independent line of development.
Beginner
11. How to create a branch?
git branch branch-name
Beginner
12. How to switch branches?
git checkout branch-name or git switch branch-name
Beginner
13. What is git merge?
Combines changes from one branch into another.
Beginner
14. What is git pull?
Fetches and merges changes from remote repository.
Beginner
15. What is git push?
Uploads local commits to remote repository.
Intermediate
16. What is the staging area?
Temporary area where changes are prepared before commit.
Intermediate
17. What is git fetch?
Downloads changes from remote without merging.
Intermediate
18. What is git rebase?
Reapplies commits on top of another base branch.
Intermediate
19. Difference between merge and rebase?
Merge preserves history; rebase rewrites commit history.
Intermediate
20. What is a conflict in Git?
Occurs when Git cannot automatically merge changes.
Intermediate
21. How to resolve merge conflict?
Edit conflicted files, then git add and git commit.
Intermediate
22. What is git stash?
Temporarily saves uncommitted changes.
Intermediate
23. How to view branches?
git branch
Intermediate
24. How to delete a branch?
git branch -d branch-name
Intermediate
25. What is git reset?
Moves HEAD and optionally modifies staging area and working directory.
Intermediate
26. What is git revert?
Creates a new commit that undoes changes.
Intermediate
27. What is HEAD in Git?
Pointer to the current commit.
Intermediate
28. What is .gitignore?
File that specifies untracked files Git should ignore.
Intermediate
29. How to see remote repositories?
git remote -v
Intermediate
30. What is origin?
Default name for the remote repository.
Advanced
31. What is cherry-pick?
Applies a specific commit from one branch to another.
Advanced
32. What is a detached HEAD?
When HEAD points directly to a commit instead of a branch.
Advanced
33. What is git tag?
Marks specific commit points (usually releases).
Advanced
34. What is submodule?
A repository embedded inside another repository.
Advanced
35. What is bisect?
Helps find the commit that introduced a bug.
Advanced
36. What is git blame?
Shows who modified each line in a file.
Advanced
37. What is hook in Git?
Scripts that run automatically on certain Git events.
Advanced
38. What is shallow clone?
Clone with limited commit history using --depth.
Advanced
39. What is git reflog?
Shows history of HEAD changes.
Advanced
40. What is squash?
Combines multiple commits into one.
Coding Round
41. Initialize repo
git init
Coding Round
42. Add all files
git add .
Coding Round
43. Commit with message
git commit -m "Initial commit"
Coding Round
44. Create and switch branch
git checkout -b feature-branch
Coding Round
45. Merge branch
git merge feature-branch
Coding Round
46. Push branch
git push origin feature-branch
Coding Round
47. Pull latest changes
git pull origin main
Coding Round
48. Stash changes
git stash
Coding Round
49. View commit history
git log --oneline
Coding Round
50. Delete remote branch
git push origin --delete branch-name