Remote Branches
Task
Start from the remote branch o/main, create a separate branch bugFix, add a commit to it, and publish it to origin.
Steps
- Create a local branch
bugFixfromo/mainand switch to it. - Make one commit.
- Push the resulting branch to the remote repository.
Expected result
The local and remote bugFix branches must point to the new commit. HEAD must be on the local bugFix.
What you will learn
After completing the task, you will be able to:
- create a local branch from a remote-tracking branch;
- publish a new branch to origin;
- understand how the tracking relationship is set up after a push.
Goal
local
origin