Git Fetch
Task
Download all new commits and branch positions from origin without merging them into your local work.
Requirements
- Update the data about all available remote branches.
- Do not move the local branches
mainandbugFix. - Do not create merge or rebase commits.
Expected result
The remote-tracking branches o/main and o/bugFix must reflect the state of origin, and the local branches and HEAD must stay on their previous commits.
What you will learn
After completing the task, you will be able to:
- download changes without integrating them;
- understand which pointers fetch moves;
- safely inspect the state of origin before a merge or rebase.
Goal
local
origin