Video: Connect a remote without confusing it with an upstream
The video plays in YouTube’s player, in privacy-enhanced mode.
- 6 min video
- English narration · English and Arabic captions
- Watch on YouTube
Add a local bare origin, fetch its main branch and deliberately choose what local main tracks. Prove that a remote name, a remote-tracking ref and an upstream setting are three different things.
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.
- Connect a remote, then choose an upstream deliberately.
- The feature exists locally; it has not been published.
- Disable background fetching only in this recording repository.
- Switch to main before writing the transport document.
- Save the complete document without machine-specific paths or credentials.
- Stage the transport document on main, not on the feature.
- The document adds the sixth commit on main.
- Prepare a separate bare copy of main for local transport.
- This destination has main, but no feature branch.
- The original and bare destination are separate repositories.
- Generate a file URL for the intended local destination.
- Saving the address does not fetch branches or upload the feature.
- Open the remote dialog in the original repository.
- Name it origin and verify the complete destination.
- The remote is configured; its branch has not been fetched.
- The fetch rule exists while the tracking-ref query is empty.
- Selecting a missing upstream fails without moving main.
- Does choosing an upstream replace fetching? It does not.
- Fetch the remote's main without switching your current branch.
- Origin slash main is your local fetched record.
- Fetching is not merging, rebasing or replacing the page.
- Choose the relationship for the named local main branch.
- Selecting the option alone is not the confirmed relationship.
- Confirm main's upstream without moving its commit.
- Verify main, its upstream, matching tips and clean work.
- An empty server feature query does not mean the local feature was lost.
- Address, fetched record and upstream setting remain different things.
- Correct an upstream choice without resetting the history.
- Verify the original and server separately before continuing.
- Explain why the missing ref required a fetch, not a push.
- A local bare remote is not a hosted project or a pipeline.
- Next, fetch a teammate's update while keeping your own files unchanged.