Complete the command to switch to the main branch in Git.
git checkout [1]The main branch is usually called main in trunk-based development. This command switches your working directory to that branch.
Complete the command to create a new short-lived feature branch from main.
git checkout -b [1] mainIn trunk-based development, feature branches are short-lived. Here, feature-login is a descriptive name for the new branch.
Fix the error in the command to merge the feature branch back into main.
git checkout main
git [1] feature-loginTo combine changes from the feature branch into main, you use git merge.
Fill both blanks to push the main branch and delete the feature branch locally.
git [1] origin main git branch [2] feature-login
First, you push the main branch to the remote with git push origin main. Then, you delete the local feature branch with git branch -d feature-login.
Fill all three blanks to fetch updates, rebase your feature branch on main, and then push it.
git [1] git checkout feature-login git [2] main git [3] origin feature-login
First, fetch updates from the remote with git fetch. Then, rebase your feature branch on main with git rebase main to keep history clean. Finally, push your rebased branch with git push origin feature-login.