CS FundamentalsHardProduct-company placement · Git

A team rebases a long-lived branch every day and keeps resolving the same conflict in config.yml by hand. Which Git feature can do this automatically once it has seen the resolution?

  1. A. git rerere (reuse recorded resolution)
  2. B. git merge -s ours on every rebase
  3. C. git bisect run
  4. D. git cherry-pick --continue

Correct answer: A. git rerere (reuse recorded resolution)

With rerere.enabled, Git records how a conflict hunk was resolved and replays that resolution when the identical conflict appears again. -s ours would throw away the other side's changes entirely.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic