InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 1657–1668 of 3610 questions

Git, GitHub & CI/CDIntermediate1 min read

What is a detached HEAD?

Detached HEAD means `HEAD` points directly to a commit rather than a branch name. It is useful for inspecting old revisions, but new commits can…

Git, GitHub & CI/CDBeginner1 min read

Explain Git merge.

Merge integrates histories by creating a merge commit when needed, or by fast-forwarding when the target can move directly forward. Conflicts occ…

Git, GitHub & CI/CDIntermediate1 min read

What is a fast-forward merge?

A fast-forward occurs when the target branch is an ancestor of the source branch, so Git can move the target reference forward without creating a…

Git, GitHub & CI/CDIntermediate1 min read

What is a three-way merge?

When branches diverge, Git uses their common ancestor and both branch tips to calculate a merge result. Conflicting edits to the same region may…

Git, GitHub & CI/CDIntermediate1 min read

What is Git rebase?

Rebase replays commits onto a new base, producing a more linear history. Replayed commits have new IDs. Rebase local unpublished work freely, but…

Git, GitHub & CI/CDIntermediate1 min read

What is cherry-pick?

`git cherry-pick` applies the changes introduced by selected commit(s) onto the current branch, creating new commit IDs. It is useful for targete…

Git, GitHub & CI/CDBeginner1 min read

What is `git stash`?

Stash temporarily saves working-tree and optionally staged changes so you can switch context without committing incomplete work. Stashes are loca…