SWEN-610 Introduction to Software Engineering
Department of Software Engineering Rochester Institute of Technology
Branching and Merging SWEN-610 Introduction to Software - - PowerPoint PPT Presentation
Branching and Merging SWEN-610 Introduction to Software Engineering Department of Software Engineering Rochester Institute of Technology Version control branching supports the ability to manage software releases. At the end of a sprint,
Department of Software Engineering Rochester Institute of Technology
2
3 In Dev In Test Ready for Test Sprint 2 Done
S3 S4 S6
Sprint 2 Backlog
S8 (5)
Sprint 1 Done
S1 S2 S5
4
5
6
Not shown are the coordinating remote branches
7
/** * Calculate a half-off discount. */ public float calculateDiscount(final float cost) { return cost * 2; }
return cost / 2;
return cost * 0.5f;
8
➔ git merge dev1 Auto-merging src/main/java/com/example/model/Promotion.java CONFLICT (content): Merge conflict in src/main/java/com/example/model/Promotion.java Automatic merge failed; fix conflicts and then commit the result.
public float calculateDiscount(final float cost) { <<<<<<< HEAD return cost * 0.5f; ======= return cost / 2; >>>>>>> dev1 }
9
The HEAD in Sam's workspace. This is the code from Betty's branch.
/** * Calculate a half-off discount. */ public float calculateDiscount(final float cost) { return cost / 2; }
10
11
12