Locked Main
Task
Publishing directly to main is forbidden. Create a separate branch for the change and push only that branch.
Steps
- Create a branch named exactly
featurefrom the current state. - Make one commit on it.
- Publish the
featurebranch to origin.
Expected result
The local and remote feature must point to the new commit. The local main, o/main and the remote main must stay unchanged.
What you will learn
After completing this task you will be able to:
- work through a feature branch when
mainis protected; - publish a new branch without touching the main one;
- understand the basic workflow for a subsequent pull request.
Goal
local
origin