Switch back and forth

Report a typo

Sort the commands so that the following actions take place one after another.

  1. First, check the branches you have,
  2. merge the "experimental" branch,
  3. switch to "redundant" branch,
  4. check the state of the repository and staging area,
  5. then switch back to the main branch,
  6. delete "redundant" branch.
Put the items in the correct order
git checkout main
git checkout redundant
git branch -d redundant
git branch
git merge experimental
git status
___

Create a free account to access the full topic