Version Control Wrap
Fall 2025
1
Outline
2
Outline
3
Outline
5
Version Control Review
Questions like these will definitely�be on the midterm exam
Syncing Across Different Repos
Branches
Suppose you have a branch off of main called Feature-Branch, and suppose one commit has been made to main since you branched.
Redraw the history after a merge commit is used to reconcile the history. What branch should you be on to merge into main? What command would you use?
Option 1: Merge Commit
A merge commit creates two parent pointers:
Suppose you have a branch off of main called Feature-Branch, and suppose one commit has been made to main since you branched.
Redraw the history after a rebase is used to reconcile the history. What branch should you be on to merge into main? What command would you use?
Option 2: Rebasing
Rebasing involves actually making your code history look like you actually branched from D (your collaborator’s commit). In other words, you “rewrite history”. The steps:
What is the difference between a fast forward merge and a regular merge?
Your answer here…
What are the steps to resolve a merge conflict during a rebase?
<<<<<<< HEAD
[Feature A Code]
=======
[Feature B Code]
>>>>>>> 1a0ffaa (Add feature b)
main.py
Outline
15