Difficulty: 2/10branch creation, branch switching, workflowjavascriptCopyScenario Questions0-2 years experience1You need to start working on a bug fix. Walk me through the exact git commands you would use to create a new branch for this fix and switch to it.2If you run `git checkout -b feature/login` and then realize you made a typo in the branch name, how would you correct it without losing your work?2-5 years experience1While implementing a new feature, you created a branch and later discovered that the base branch had new commits. How would you update your branch, and what considerations affect whether you rebase or merge?Follow-up QuestionsWhat happens if you try to switch to a branch that has uncommitted changes?How would you rename a local branch and update the remote reference?Can you explain the difference between `git checkout` and `git switch` for creating and switching branches?Suggest Improvement