Pull with Explicit Integration Strategies
Fast-forward only
Pull fetches and then integrates into the current branch. In the lab Alice publishes another commit (tea.txt) after Bob returns to main. Choose --ff-only to refuse divergence rather than rely on machine defaults. Start with a clean working tree.
Bob receives the tea commit and main advances without a merge commit.
Choose a policy
On divergence, --no-rebase requests merge integration, while --rebase replays local commits on the fetched history, changing their identities. Rebase is introduced conceptually; avoid rewriting shared commits. An unsuccessful pull may already have fetched new refs.
On the synchronized lab branch the comparison is empty. On divergent history inspect both sides before choosing merge or rebase.
Practice and check
Use the Chapter 10 lab guide. Before each command predict which local or remote reference changes, then compare the observed result. Distinguish fetch from integration and choose explicit strategy.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Pull with Explicit Integration Strategies — knowledge check
Check understanding of remote repository behavior.
What two operations does pull combine?
What does --ff-only refuse?
What can happen before a pull rejects divergence?
What does rebase generally do?
Which option requests merge rather than rebase?