Interview Q&A / Git & GitHub
Git & GitHub interview questions
Branching, merge vs rebase, resolving conflicts and pull requests, the way teams actually work.
Prefer rapid revision? Practise Git & GitHub short interview answers →
- 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