Practice branching, merging, rebasing, and Git workflows with version control scenarios
Start Practicing NowMaster commits, branches, merges, and the Git object model
Learn Git Flow, trunk-based development, and team strategies
Understand rebasing, cherry-picking, and conflict resolution
Select Git as your interview topic and customize the difficulty level
Answer realistic Git interview questions in a simulated environment
Receive detailed feedback on your answers, including areas to improve
Monitor your improvement and identify strengths and weaknesses
Git branching and merging strategies
Rebase vs merge workflows
Conflict resolution techniques
Git internals and object model
Pull requests and code review
Git hooks and automation
A: Merge creates new commit combining branches, preserves history, shows branch structure. Rebase replays commits on top of another branch, creates linear history, rewrites commit SHA. Use merge for public branches (preserves history), rebase for cleaning up local branches before pushing. Never rebase public/shared branches.
A: Cherry-pick applies specific commit from one branch to another. Creates new commit with same changes but different SHA. Use when you need specific fix from another branch without merging everything. Example: hotfix committed to wrong branch, picking single commit from feature branch. Can cause duplicates if branches later merge.
A: --soft: moves HEAD, keeps staged changes and working directory. --mixed (default): moves HEAD, unstages changes, keeps working directory. --hard: moves HEAD, discards staged and working changes (dangerous). Use soft for uncommitting, mixed for unstaging, hard for discarding everything (with caution).
A: Hooks are scripts that run at specific Git events. Client-side: pre-commit (linting, tests), commit-msg (message format), pre-push. Server-side: pre-receive (reject pushes), post-receive (deploy, notify). Located in .git/hooks. Use for automation: code quality checks, CI/CD triggers, notifications.
Master interactive rebase for cleaning up commit history
Understand git reflog for recovering lost commits
Know how to resolve merge conflicts effectively
Practice with Git workflows: Git Flow, GitHub Flow, trunk-based development
Understand the difference between git pull and git fetch + merge
Join thousands of developers who have improved their interview skills with Vibe Interviews
Start Your Git Interview Practice