Interview Q&A / Git & GitHub

INTERVIEW Q&A · 97 QUESTIONS

Git & GitHub interview questions

Branching, merge vs rebase, resolving conflicts and pull requests, the way teams actually work.

  1. What does git revert -n (--no-commit) do?

    It applies the reverse of a commit to your working tree and index without committing. This lets you revert several commits and record them together as a single commit.

    AdvancedQuick answer1 min read