Video: Fetch a teammate's change without replacing your page
The video plays in YouTube’s player, in privacy-enhanced mode.
- 6 min video
- English narration · English and Arabic captions
- Watch on YouTube
Receive Leo's real footer commit while keeping main, the index and the original working page unchanged. Then inspect stale-ref pruning in a separate replay so server deletion is not confused with local cleanup.
Read the full lesson
The article has every step and command from the video, the practice exercise and the questions.
Video transcript
The narration of the video, cue by cue.
- Receive the update without replacing your current page.
- Keep background fetching off for this before-and-after take.
- Prepare Leo's separate clone with a fictional local identity.
- Leo records and pushes the footer reminder to the local origin.
- The server moved while your fetched record stayed behind.
- These counts use your local fetched ref, not a live server snapshot.
- Which ref will move, and which file version will stay?
- Fetch all configured remotes; here there is only origin.
- Wait for Git's result before treating the update as received.
- Selecting Leo's commit does not check it out.
- Compare main with the fetched tree without moving either ref.
- The fetched tree has the reminder; your working page still does not.
- The original working file keeps its old footer.
- Clean working changes do not mean your branch is up to date.
- Verify six local commits, seven fetched commits and one behind.
- Fetching updated knowledge without integrating the file contents.
- A local edit in the same file survives this fetch.
- The server branch is already gone before this pruning example.
- Preview the stale tracking ref before removing it.
- Remove the stale local tracking ref, not the local rescue branch.
- The local branch and working page remain intact.
- A prior fetch may already have removed the stale tracking ref.
- Keep the original clean and behind one; do not pull or force-push.
- Next, inspect the destination before publishing a branch.