Git Pull Arguments
Task
While on the local main, download the foo branch from origin and immediately merge it into the current branch.
Requirements
- Explicitly specify the remote
originand thefoobranch. - The integration must happen into the current
main. - Any other remote branch will not do.
Expected result
A remote-tracking branch o/foo must appear, and the local main must include the commit from the remote foo. The state of origin does not change.
What you will learn
After completing this task you will be able to:
- run pull from an explicitly chosen branch;
- understand the relationship between fetch and the integration that follows;
- distinguish the current local branch from the remote source of changes.
Goal
local
origin