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?
- A. git rerere (reuse recorded resolution)
- B. git merge -s ours on every rebase
- C. git bisect run
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A CI job clones a huge repository with git clone --filter=blob:none. Which statement is correct?
- A company debates a monorepo (all services in one repository) against one repository per service. Which statement is the strongest…
- Match each test smell with its description. P. Assertion roulette Q. Mystery guest R. Eager test S. Sleepy test 1. Depends on an external…
- A state machine has 4 states and 3 possible events, with 5 valid transitions defined. A tester also wants negative tests for every (state…
- For integer x, what is the weakest precondition wp(if x > 0 then y := x else y := −x, y ≥ 2)?
- An IDE has a small core that loads, at start-up, independently developed extensions which register through defined extension points. Which…