GIT Interview Questions and Answers
Experienced / Expert level questions & answers
Ques 1. What is the difference between 'git rebase' and 'git merge'?
'git rebase' integrates changes from one branch to another by applying them individually, while 'git merge' combines changes as a single commit.
Ques 2. What is Git bisect, and how is it used?
Git bisect is a binary search tool that helps identify the commit where a bug was introduced. It is used by systematically narrowing down the commit range.
Ques 3. Explain the concept of Git rebase interactive.
Git rebase interactive allows you to selectively edit, reorder, or squash commits during the rebase process.
Ques 4. How do you squash multiple Git commits into a single commit?
You can use 'git rebase -i' and then combine or squash commits interactively during the rebase process.
Ques 5. What is Git subversion (git-svn)?
Git subversion is a Git extension that allows Git to interact with Subversion (SVN) repositories, enabling users to use Git locally while still collaborating with SVN.
Most helpful rated by users: