What is the key difference between `git rebase` and `git merge`?
Merge creates a merge commit, preserving the full branch history (non-destructive). Rebase moves your branch's commits on top of the target branch, creating a clean linear history — but rewrites commit SHAs. Golden rule: never rebase shared or public branches.
🌊 This is a free sample — 507+ more questions on DevOps Ocean
Sign in free to practice the full question bank with daily challenges, XP, streaks, duels and a global leaderboard.