CS FundamentalsVery hardGATE CS · TCS NQT Prime · Product Company SDE
What is the key difference between `git merge --no-ff` and a fast-forward merge?
- A. A fast-forward merge always creates a merge commit; --no-ff never does
- B. --no-ff always creates an explicit merge commit recording that a merge happened, even when a fast-forward would otherwise be possible; a fast-forward merge just moves the branch pointer forward with no extra commit
- C. --no-ff deletes the feature branch automatically
- D. They produce identical history in every case
Correct answer: B. --no-ff always creates an explicit merge commit recording that a merge happened, even when a fast-forward would otherwise be possible; a fast-forward merge just moves the branch pointer forward with no extra commit
When the current branch's history is a strict ancestor of the branch being merged, Git can simply fast-forward the pointer with no merge commit; --no-ff forces a merge commit to be created anyway, preserving a visible record of the feature branch's existence.
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
- Which rollback characteristic distinguishes blue-green deployment from canary release?
- For a organic mode project with Basic COCOMO effort E = 26.9 person-months, the development time formula is D = 2.5 × E^0.38 months. What…
- What problem does a pipeline stage that runs automated security/dependency vulnerability scanning on every build ('shifting security…
- A base class defers the decision of exactly which concrete subclass to instantiate to its subclasses, by exposing a creation method that…
- What is the difference between 'verification' performed via a static code review (e.g. a peer reading the diff) and verification performed…
- Using Basic COCOMO for a embedded mode project (Effort = 3.6 × (KLOC)^1.2 person-months), what is the estimated effort for a 40 KLOC…