DevOps & Cloud 路 Intern to senior

Git Interview Questions and Answers

Every engineering role uses Git, so almost every interview loop includes a few questions about it. Interviewers want to know you can work on a shared branch without losing work, explain what a command does to history, and recover when something goes wrong.

Download Git PDF5 questions

1 of 5 questions match

Clear filters
  • GitMedium

    What is the difference between git reset and git revert?

    git revert creates a new commit that undoes an earlier one and is safe on shared branches; git reset moves the branch pointer back to an earlier commit, effectively removing later commits from that branch鈥檚 history.

    Mid-level 路 Senior 路 Git